Boost C++ Libraries: Ticket #2855: Rapid XML 1.12 whitespace parsing bug https://svn.boost.org/trac10/ticket/2855 <p> [My patch, copied from sourceforge.] Rapid XML 1.12 always skips whitespace following a &gt; (end-of-open-tag) even when <code>parse_trim_whitespace</code> is not specified. The attached patch skips whitespace following a &gt; ONLY when <code>parse_trim_whitespace</code> IS specified. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2855 Trac 1.4.3 Chris Sat, 14 Mar 2009 15:05:51 GMT attachment set https://svn.boost.org/trac10/ticket/2855 https://svn.boost.org/trac10/ticket/2855 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">rapidxml.hpp.diff1</span> </li> </ul> <p> This small patch fixes the problem. </p> Ticket Chris Tue, 19 May 2009 23:44:18 GMT milestone changed https://svn.boost.org/trac10/ticket/2855#comment:1 https://svn.boost.org/trac10/ticket/2855#comment:1 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.39.0</span> → <span class="trac-field-new">Boost 1.40.0</span> </li> </ul> Ticket Sebastian Redl Sun, 04 Oct 2009 12:01:18 GMT owner, status changed https://svn.boost.org/trac10/ticket/2855#comment:2 https://svn.boost.org/trac10/ticket/2855#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">kaalus</span> to <span class="trac-author">Sebastian Redl</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket anonymous Wed, 20 Jan 2010 18:48:36 GMT milestone changed https://svn.boost.org/trac10/ticket/2855#comment:3 https://svn.boost.org/trac10/ticket/2855#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.40.0</span> → <span class="trac-field-new">Boost 1.42.0</span> </li> </ul> <p> Fixed on trunk. </p> Ticket anonymous Thu, 29 Mar 2012 08:54:21 GMT <link>https://svn.boost.org/trac10/ticket/2855#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2855#comment:4</guid> <description> <p> This patch really introduced a bug: now, every time a tag is closed, the parser finds after it a non really existent tag with empty name. Unless you activate the option "parse_trim_whitespace", which is intended for other purpose. Since boost uses this library in fact enabling such option, this problem has not been noticed, but anybody directly using rapidxml in boost (property tree may have a huge memory penalty) will find it. </p> <p> I'd suggest to revert this change, and in case the trim support requires improvement, do it the right way. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Thu, 29 Mar 2012 09:14:48 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2855#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2855#comment:5</guid> <description> <p> I don't understand. Can you show an example xml snippet and the expected and actual behavior? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Sebastian Redl</dc:creator> <pubDate>Sat, 24 Nov 2012 14:57:03 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2855#comment:6 https://svn.boost.org/trac10/ticket/2855#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Given that I have no idea what the problem now is, I'm closing this. </p> Ticket