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
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@
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
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
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
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
6 matches
Mail list logo