List Info

Thread: SV: containing well formed XML Documents




SV: <xml-fragment> containing well formed XML Documents
user name
2006-04-28 17:09:45
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.patellgim.co.uk]
> Sent: Friday, April 28, 2006 3:34 AM
> To: userxmlbeans.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:swiftsd:$a
hV10">
>     <ah:From>
>       <ah:Type>ei Type From</ah:Type>
>       <ah:Id>ei ID From</ah:Id>
>     </ah:From>
>   </ah:AppHdr>
>   <Dococument
xmlnsoc=&quo
t;urn:swiftsd:sw
ift.if.ia$setr.010.001.02">
>     <Doc:MstrRef>the Master
Reference</Doc:MstrRef>
>   </Dococument&
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-unsubscribexmlbeans.apache.org
> For additional commands, e-mail: user-helpxmlbeans.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-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org

SV: <xml-fragment> containing well formed XML Documents
user name
2006-05-02 17:08:50
Thanks Cezar.
I tried this and it worked.
The only problem I found is that the xmlns attribute is
lost.  So,  instead
of seeing
<AppHdr xmlns="urn:swiftsd:$a
hV10"> I only see <urn:AppHdr> 

Any ideas?

Thanks again

Nirmal

--
View this message in context: http://www.n
abble.com/%3Cxml-fragment%3E-containing-well-formed-XML-Docu
ments-t1480526.html#a4185490
Sent from the Xml Beans - User forum at Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: user-unsubscribexmlbeans.apache.org
For additional commands, e-mail: user-helpxmlbeans.apache.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )