From ralph.lessmann at crossmatch.com Fri Jan 18 05:39:38 2019 From: ralph.lessmann at crossmatch.com (Ralph Lessmann) Date: Fri Jan 18 07:35:48 2019 Subject: [xsde-users] using XML-any Message-ID: Hello, I need to serialize a xml::any element. The problem I'm facing is that I have a valid xml string, which can represent a complex xml. I need to copy this xml string inside the xml::any element. Apparently if I create a custom serializer and add the element name for the any element (virtual void any( ::std::string& ns, ::std::string& name )) and then add the complex xml content as string like virtual void serialize_any() { this->_characters( _txt.c_str() ); } Upon serialization, the string gets quoted as string (e.g.: '<' will be "<") and is not treated as xml. So this doesn't work. Anyone who can suggest what to do? Thanks in advance Ralph From boris at codesynthesis.com Mon Jan 21 07:38:53 2019 From: boris at codesynthesis.com (Boris Kolpackov) Date: Mon Jan 21 07:52:58 2019 Subject: [xsde-users] using XML-any In-Reply-To: References: Message-ID: Ralph Lessmann writes: > I need to serialize a xml::any element. The problem I'm facing is that > I have a valid xml string, which can represent a complex xml. I need to > copy this xml string inside the xml::any element. Here is an answer to a previous similar question: https://www.codesynthesis.com/pipermail/xsde-users/2016-November/000795.html