RE: Navigating Untyped XmlObject with XmlCursor

2009-03-12 Thread Wing Yew Poon
e- From: Kapil Anand [mailto:kapil...@yahoo.com] Sent: Thursday, March 12, 2009 12:59 PM To: user@xmlbeans.apache.org Subject: RE: Navigating Untyped XmlObject with XmlCursor Thanks Cezar. I am now aware of the things you pointed out. What I am looking for is some way to get XmlObject that represents

RE: Navigating Untyped XmlObject with XmlCursor

2009-03-12 Thread Kapil Anand
oking for: > http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptions.html#setSaveOuter(). > > Cezar > >> -Original Message- >> From: Kapil Anand [mailto:kapil...@yahoo.com] >> Sent: Wednesday, March 11, 2009 10:20 PM >> To: user@

RE: Navigating Untyped XmlObject with XmlCursor

2009-03-12 Thread Cezar Andrei
apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlOptions.html#setSaveOuter(). Cezar > -Original Message- > From: Kapil Anand [mailto:kapil...@yahoo.com] > Sent: Wednesday, March 11, 2009 10:20 PM > To: user@xmlbeans.apache.org > Subject: Re: Navigating Untyped XmlObje

Re: Navigating Untyped XmlObject with XmlCursor

2009-03-11 Thread Kapil Anand
OK I figured it out. It was my lack of understanding of how cursor.getObject() works. There must be some good reason behind this design but it sure is tricky. xmlObj = cursor.getObject() returns the typed contents of the current start/startdoc cursor position and it excludes the container element

Re: Navigating Untyped XmlObject with XmlCursor

2009-03-11 Thread Kapil Anand
Thanks for replying Jacob. I tried cursor.child(1) but it returns false. (child index 1 anyway represents the second child of the current cursor position and i need to select the first child). This is what i am inferring from the behavior of the api: When i start with the XmlObject that represent

Re: Navigating Untyped XmlObject with XmlCursor

2009-03-11 Thread Jacob Danner
I'm not sure I really understand the question you are trying to ask, but why not try xmlcursor.toChild(1)? -jacobd On Wed, Mar 11, 2009 at 1:31 PM, Kapil Anand wrote: > > hi > I am struggling to select the contents of the first child of an untyped > root > element. The qname of the child is not