Opened 14 years ago

Closed 13 years ago

#2567 closed Bugs (fixed)

Cannot have a string member in a bundled property containing '<' or '>' when using XML reader

Reported by: remi.chateauneu@… Owned by: Jeremiah Willcock
Milestone: Boost 1.38.0 Component: graph
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

When a data member in a bundled property is a string and contains characters such as '<' or '>': It is impossible to read such a XML file because the parser thinks they are beginning of XML tags.

Change History (4)

comment:1 by Jeremiah Willcock, 14 years ago

Owner: changed from Douglas Gregor to Jeremiah Willcock

Does this apply to some particular format reader or writer?

comment:2 by remi.chateauneu@…, 14 years ago

Yes, when reading from XML. It should use boost::protect_xml_string as it is done for dynamic properties I think.

comment:3 by Jeremiah Willcock, 14 years ago

Summary: Cannot have a string member in a bundled property containing '<' or '>'Cannot have a string member in a bundled property containing '<' or '>' when using XML reader

comment:4 by Jeremiah Willcock, 13 years ago

Resolution: fixed
Status: newclosed

(In [53213]) Changed GraphML writer to escape strings; added test of this; fixes #2567

Note: See TracTickets for help on using tickets.