#1223 closed Bugs (wontfix)
boost::serialization chokes on correcly formatted empty XML element
| Reported by: | 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 , 15 years ago
| Resolution: | → wontfix | 
|---|---|
| Status: | new → closed | 
comment:2 by , 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 , 9 years ago
Rather silly decision. This makes me regret choosing the boost for my XML requirements.
  Note:
 See   TracTickets
 for help on using tickets.
    

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