Details
-
Type: New Feature
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: IO
-
Labels:None
Description
In certain cases is required that XStream produces a human-readable XML-output containing also explanatory comments. This is, however, with the actual HierarchicalStreamWriter not realizable; accessing the underlying raw stream while the HierarchicalStreamWriter is open, is also very unsafe.
An adequate method on HierarchicalStreamWriter for writing comments - at least in certain states - would be nice.
The main problem is, that comment cannot preserved reading XML. They have simply no representation in the deserialized objects. Therefore it is questionnable if writing of comments should be supported at all.