[xml] SOAP within SOAP



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]