|
XQuery results are not typed…You can
use changeType to type the result yourself, but only in the case that the
result has a DocumentType corresponding to it. We are looking into improving
that behaviour – if you wish to open a Jira bug with an example, that
would be great. Alternatively, can you use XPath and the
.copy() method on the result? - From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Hi XmlBeaners, Is it possible with xmlbeans-2.0.0 to issue
"execQuery(myQuery)" and cast it to a strongly typed XmlBean? Seems
like this is only possible with "selectPath(myQuery)". Even when I
use a Factory.parse method on the XML String fragment returned from execQuery,
the XML will not validate? Any reason why? My motivation for a fragment with XQuery is returning just a
portion of XML that I'll further parse in a multi-threaded application. So I
don't want to be working with the original store returned by selectPath. Thanks, Brian |
Title: Message
- RE: execQuery() Casting to strongly typed XmlBean - ClassCas... Yana Kadiyska

