Wrapping Arbitrary XML within XML

后端 未结 6 600
感动是毒
感动是毒 2021-01-05 07:53

I need to embed arbitrary (syntactically valid) XML documents within a wrapper XML document. The embedded documents are to be regarded as mere text, they do not need to be p

6条回答
  •  心在旅途
    2021-01-05 08:43

    You can do this by simply adding the document (without its <?xml declaration) as a child tom some parent. SOAP is doing this - it has a element that can contain whatever xml message one wants to send.

    SOAP defines the XSD this way:

    
      
        
          
        
        
        
      
    

提交回复
热议问题