hi I am struggling to select the contents of the first child of an untyped root element. The qname of the child is not known but the position is, so I am using xmlCursor.toFirstChild()
XmlCursor code works fine if there is only one child under the root element, but it fails if there are more than one. Interestingly the navigation works fine but the XML contents of the first child XML Object selected by cursor has xml-fragment and other sibling children much like the schema typed contents of an element defined in a schema. Please see the attached file (UnTyped_XmlObject_cursor.txt) for the navigation code and the output. The XML value for "First Child at Level 1:" is the erroneous output. I would really appreciate any help. (i have seen similar questions posted here without any response) thanks kapil http://www.nabble.com/file/p22463857/UnTyped_XmlObject_cursor.txt UnTyped_XmlObject_cursor.txt -- View this message in context: http://www.nabble.com/Navigating-Untyped-XmlObject-with-XmlCursor-tp22463857p22463857.html Sent from the Xml Beans - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

