Opened 14 years ago

Closed 10 years ago

#2855 closed Bugs (invalid)

Rapid XML 1.12 whitespace parsing bug

Reported by: Chris Owned by: Sebastian Redl
Milestone: Boost 1.42.0 Component: property_tree
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

[My patch, copied from sourceforge.] Rapid XML 1.12 always skips whitespace following a > (end-of-open-tag) even when parse_trim_whitespace is not specified. The attached patch skips whitespace following a > ONLY when parse_trim_whitespace IS specified.

Attachments (1)

rapidxml.hpp.diff1 (907 bytes ) - added by Chris 14 years ago.
This small patch fixes the problem.

Download all attachments as: .zip

Change History (7)

by Chris, 14 years ago

Attachment: rapidxml.hpp.diff1 added

This small patch fixes the problem.

comment:1 by Chris, 13 years ago

Milestone: Boost 1.39.0Boost 1.40.0

comment:2 by Sebastian Redl, 13 years ago

Owner: changed from kaalus to Sebastian Redl
Status: newassigned

comment:3 by anonymous, 13 years ago

Milestone: Boost 1.40.0Boost 1.42.0

Fixed on trunk.

comment:4 by anonymous, 11 years ago

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.

I'd suggest to revert this change, and in case the trim support requires improvement, do it the right way.

comment:5 by Sebastian Redl, 11 years ago

I don't understand. Can you show an example xml snippet and the expected and actual behavior?

comment:6 by Sebastian Redl, 10 years ago

Resolution: invalid
Status: assignedclosed

Given that I have no idea what the problem now is, I'm closing this.

Note: See TracTickets for help on using tickets.