Hi,

Our XSDs contain numerous instances of declared default values for
attributes. E.g.

<xs:attribute name="test" type="boolean" default="true" />

In cases where the attributes are not present in the Xml document, querying
the attribute value via the generated XmlBeans accessor methods returns the
default value as expected.

However, when selecting the same attribute with an XPath expression using
the selectPath method (as we need to do, upon occasion), an empty array is
returned.

Are we doing something wrong, or is this a deficiency in the XPath support?

Thanks,
Coram Bryant
-- 
View this message in context: 
http://www.nabble.com/Querying-Default-values-using-XPath-tf2186949.html#a6050008
Sent from the Xml Beans - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to