Wrapping Arbitrary XML within XML

Posted by Marc C on Stack Overflow See other posts from Stack Overflow or by Marc C
Published on 2009-04-22T13:50:40Z Indexed on 2010/04/22 5:33 UTC
Read the original article Hit count: 920

Filed under:
|

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 parseable when parsing the wrapper document.

I know about the "CDATA trick", but I can't use that if the inner XML document itself contains a CDATA segment, and I need to be able to embed any valid XML document. Any advice on accomplishing this--or working around the CDATA limitation--would be appreciated.

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xml-serialization