Svar: [xml] SOAP within SOAP



Nevermind. Sleeping sometimes helps a lot ;-) A discovered xmlNewTextChild. It does what I want!

/Erik

Erik F. Andersen<ea ascott dk> 04.01.2005 17:00:33 >>>
Hello!
 
I'm faced with this rather perculiar problem. I have a SOAP request that
passes as an argument another SOAP request that amongst other things
contains another XML tree as an argument (SOAP within SOAP). I'm having
problems formatting the different control-characters in the innermost
XML-tree.
 
My tree would look something like this where each sub-tree is a value:
 
level 1 (soapdata)
<soapdata>soaprequest</soapdata>
 
level 2 (soaprequest)
<soaprequest>xmldocument</soaprequest>
 
level 3 (xmldocument>
<xmldocument/>
 
What I want is a file that looks like this:
<soapdata>
  &lt;soaprequest
    &amp;lt;xmldocument
...
 
But what I get is something like this:
<soapdata>
  &lt;soaprequest
    &lt;xmldocument
...
 
I build the XML document at each level in code and my only problem is
how to force the extra "&amp;" on all nodes in the innermost XML. I
currently use xmlNodeDump to get the value at each level. 
 
Thanks for your help
 
Regards
Erik F. Andersen



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]