XmlObject's selectChildren() or selectPath() would also work. 

As for saving, since all non document XmlObject instances represent
element contents they are saved using xml-fragment, in order to save it
with a different top-level element, one should set this content to a
document XmlObject, or use XmlOption's setSaveInner() or
setSaveSyntheticDocumentElement().

Cezar

> -----Original Message-----
> From: jadiyo [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 20, 2006 11:19 AM
> To: [email protected]
> Subject: Re: SV: <xml-fragment> containing well formed XML Documents
> 
> 
> You are a genius!
> 
> The first approach didn't work for some reason, but using XmlCursor
worked
> a
> treat.
> 
> Thanks for the quick (and working) response.
> FYI, the first approach approach returned
<xml-fragment></xml-fragment>
> when
> I sent to stdout
> 
> Nirmal
> 
> 
> 
> --
> View this message in context:
http://www.nabble.com/%3Cxml-fragment%3E-
> containing-well-formed-XML-Documents-t1480526.html#a4010624
> Sent from the Xml Beans - User forum at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

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

Reply via email to