java-xmlbuilder icon indicating copy to clipboard operation
java-xmlbuilder copied to clipboard

xpathFind method is not working as expected.

Open arjunlodhe opened this issue 1 year ago • 1 comments

Hi Team,

I upgraded java-xmlbuilder library from v0.4 to 0.6 or 1.2 and I start seeing failures related to "XPathExpressionException", Please see below the complete error message:

javax.xml.xpath.XPathExpressionException: XPath expressi on "TABLE_INFO/field[tag='aggregate-count']" does not resolve to an Element in context [aggregate-information: null]: null at com.jamesmurty.utils.BaseXMLBuilder.xpathFindImpl(BaseXMLBuilder.java:505) at com.jamesmurty.utils.XMLBuilder.xpathFind(XMLBuilder.java:372) at com.jamesmurty.utils.XMLBuilder.xpathFind(XMLBuilder.java:378)

If I revert back to 0.4 it starts working, could someone please help me with this?

Regards, Arjun

arjunlodhe avatar Aug 01 '24 13:08 arjunlodhe