Opened 8 years ago
Closed 8 years ago
#10527 closed Feature Requests (wontfix)
boost serialization library not able to deserialized shorter xml tag
Reported by: | Owned by: | Robert Ramey | |
---|---|---|---|
Milestone: | To Be Determined | Component: | serialization |
Version: | Boost 1.44.0 | Severity: | Problem |
Keywords: | Cc: |
Description
<Info class_id="0" tracking_level="0" version="0"> <value>0</value> <symbol/> </Info>
Boost::serialization is not able to deserialize above XML. It throws exception with message "input stream error".
Actual XML generated by boost::serialization is
<Info class_id="0" tracking_level="0" version="0"> <value>0</value> <symbol></symbol> </Info>
I passed this XML to queue and received this XML by other application. In between queue tool shorten the empty XML tag.
Change History (1)
comment:1 by , 8 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Type: | Bugs → Feature Requests |
Note:
See TracTickets
for help on using tickets.
The xml parser used by the boost serialization library is guarenteed only to be able to parse output by the serialization library itself. So the syntax
<symbol/>
Is not legal.
Regarding the larger subject - Editing XML files produced by the serialization library. This is an interesting subject - but in no way a trivial one. If someone were interested in this, he could make a different xml archive which would include emitting a DTD or xml schema which might make it more "editable". But currently this is considered beyond the scope of the serialization library.