I am running into the same problem and have a work around (
albeit not a nice one)
The xml file contains Class$ method entries. This sometimes
causes XmlUtil.findNode() to return an Element object that
has no Method children.
A possible workaround is to use XmlUtil.getAllNodes() and
search for "findClassName". When one is found, get a List
from Element.getChildren() and check if the List is empty.
If List.isEmpty(), then continue to search for another node
in the HashSet and check its children.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=591985
I am running into the same problem and have a work around (
albeit not a nice one)
The xml file contains Class$ method entries. This sometimes
causes XmlUtil.findNode() to return an Element object that
has no Method children.
A possible workaround is to use XmlUtil.getAllNodes() and
search for "findClassName". When one is found, get a List
from Element.getChildren() and check if the List is empty.
If List.isEmpty(), then continue to search for another node
in the HashSet and check its children.