This is a case where you have to use the XmlCursor API to copy/move the two documents into the right place.
Cezar > -----Original Message----- > From: jadiyo [mailto:[EMAIL PROTECTED] > Sent: Friday, April 28, 2006 3:34 AM > To: [email protected] > Subject: Re: SV: <xml-fragment> containing well formed XML Documents > > > Hi again, > > What approach would be best to create this particular part of the > document. > As mentioned before, the element will contain any number of well formed > documents. > In my case, I have 2 documents to add to the MessageText. These > documents > are created independently. Any attempt to add the 2 documents to the > MessageText, results in them being wrapped in a CDATA. Ideally, what I > would like is something like this. > > <MessageText> > <ah:AppHdr xmlns:ah="urn:swift:xsd:$ahV10"> > <ah:From> > <ah:Type>ei Type From</ah:Type> > <ah:Id>ei ID From</ah:Id> > </ah:From> > </ah:AppHdr> > <Doc:Document xmlns:Doc="urn:swift:xsd:swift.if.ia$setr.010.001.02"> > <Doc:MstrRef>the Master Reference</Doc:MstrRef> > </Doc:Document> > </MessageText> > > > Again, many thanks in advance. > > Nirmal > > -- > View this message in context: http://www.nabble.com/%3Cxml-fragment%3E- > containing-well-formed-XML-Documents-t1480526.html#a4136239 > 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]

