Opened 15 years ago

Closed 15 years ago

Last modified 8 years ago

#1223 closed Bugs (wontfix)

boost::serialization chokes on correcly formatted empty XML element

Reported by: robert.bielik@… Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.34.1 Severity: Problem
Keywords: XML empty element Cc:

Description

boost::serialization expects empty XML elements on the format (which is the format it generates them in):

<ElementName></ElementName>

It chokes on the legally and preferred formatted XML empty element:

<ElementName/>

with a 'stream error'. This can be a problem if preprocessing is needed (before serialization to objects) with XML libraries who tend to write empty elements of the latter format.

Change History (4)

comment:1 by Robert Ramey, 15 years ago

Resolution: wontfix
Status: newclosed

boost xml serialization reads the flavor of xml it writes. It can't guarentee to process xml generated by other programs or edited xml. I might be willing to loosen up the parsing rules of someone submits a patch

comment:2 by Ryan Santos, 11 years ago

It would be better for boost to follow that standard xml format. I am currently encountering this problem as well.

comment:3 by anonymous, 9 years ago

Rather silly decision. This makes me regret choosing the boost for my XML requirements.

comment:4 by anonymous, 8 years ago

I regret too. Can not use python ElementTree for preprocessing.

Note: See TracTickets for help on using tickets.