Bug #27
closed
DBReader doesn't recreate COMMENTS and PIs when reading a doc
Added by Matt Jones over 24 years ago.
Updated over 22 years ago.
Description
DBReader only looks at the ELEMENT, ATTRIBUTE, and TEXT nodes when reading a
document from the database. It needs to also look at the COMMENT and PI nodes
and serialize those as well as it is reading.
Added two new classes (CommentNode and PINode) to allow DBReader to output
COMMENTs and PIs when reading a document. Reading is now feature complete, in
that all node types that can be written to the database are also reproduced when
the document is read. Note there is a small discrepancy in white-space handling
above the root node of the document. Newlines and spaces can be lost in this
area above the root node, but are properly preserved inside of the document
proper.
Original Bugzilla ID was 27
Also available in: Atom
PDF