Boost C++ Libraries: Ticket #757: xml serialization fails when using namespace https://svn.boost.org/trac10/ticket/757 <pre class="wiki">When serializing an object whose class is in a namespace the xml serialization throws an "unrecognized XML syntax" exception. Serializing using text or binary archive works without problem. The attached example shows the problem: define BUG and it throws, undef it and it works. It seems like the same bug was reported to the user mailinglist in this thread: http://thread.gmane.org/gmane.comp.lib.boost.user/15479 but at that time noone guessed that the namespace is the problem. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/757 Trac 1.4.3 Robert Ramey Sat, 04 Nov 2006 18:58:34 GMT <link>https://svn.boost.org/trac10/ticket/757#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/757#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=396141 Its not clear how to accomodate ":" characters in html tag names. A pending issue. Robert Ramey </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Sat, 04 Nov 2006 18:58:35 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/757#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/757#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=396141 Thank you for submitting a bug report to BOOST </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Sat, 04 Nov 2006 18:58:36 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/757#comment:3 https://svn.boost.org/trac10/ticket/757#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket carlo@… Tue, 17 Jul 2007 23:43:45 GMT status changed; resolution deleted https://svn.boost.org/trac10/ticket/757#comment:4 https://svn.boost.org/trac10/ticket/757#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">closed</span> → <span class="trac-field-new">reopened</span> </li> <li><strong>resolution</strong> <span class="trac-field-deleted">Postponed</span> </li> </ul> <p> It's more than a year later now, and I just ran into this problem with boost 1.33.1. Why was this bug closed? What is the resolution? </p> Ticket Robert Ramey Fri, 30 Nov 2007 20:28:02 GMT status changed; resolution, severity set https://svn.boost.org/trac10/ticket/757#comment:5 https://svn.boost.org/trac10/ticket/757#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">reopened</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> </ul> <p> The reason I don't do this is that it would mix the C++ namespace with the XML one. That is, the elementname std::list would appear in the xml with &lt;std::list&gt;. This could create, at the very least, confusion. It might also be a problem if the serialization stream is embedded in other xml. </p> Ticket