Xpath is....
substring-before(substring-after(/envelope/body/response/acknowledge/acknowledgement/errorList/errorInfo/errorMessage/description[contains(translate(., 'XML', 'xml'), '?xml')], '<value>'), '</value>')
When I execute this
xpath inside a transform against a document using Saxon, I get the correct
result. If I do it using Jaxen (via dom4j), I get a 0-length
String.
The source document
has an element (at
(/envelope/body/response/acknowledge/acknowledgement/errorList/errorInfo/errorMessage/description)
that has a
"flattened" xml document as its text... i.e. all the < are < and
the > are >
Any
thoughts/ideas?