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:nirmal.patel lgim.co.uk]
> Sent: Friday, April 28, 2006 3:34 AM
> To: user xmlbeans.apache.org
> 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 sd:$a
hV10">
> <ah:From>
> <ah:Type>ei Type From</ah:Type>
> <ah:Id>ei ID From</ah:Id>
> </ah:From>
> </ah:AppHdr>
> <Doc ocument
xmlns oc=&quo
t;urn:swift sd:sw
ift.if.ia$setr.010.001.02">
> <Doc:MstrRef>the Master
Reference</Doc:MstrRef>
> </Doc ocument&
gt;
> </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: user-unsubscribe xmlbeans.apache.org
> For additional commands, e-mail: user-help xmlbeans.apache.org
____________________________________________________________
___________
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: user-unsubscribe xmlbeans.apache.org
For additional commands, e-mail: user-help xmlbeans.apache.org
|