What is wrong with this XPath expression in the jaxb binding file?

trying to evaluate an XPath expression   /xs:schema/xs:element[@name='StrikeOptionReservationSummaryData']/xs:complexType

with the following document throws an XPathExpressionException
  <xs:schema>
<xs:element name="StrikeOptionReservationSummaryData">
<xs:complexType>
...
</xs:complexType>
</xs:element>
<xs:schema>

The error from xjc is [ERROR] XPath error: null

What is wrong with this?

+3
source share
1 answer

This is disgusting diagnostics, but perhaps you did not give the XPath processor a binding for the "xs" namespace prefix?

+11
source

Source: https://habr.com/ru/post/1784596/


All Articles