Due to some recent discussions, as well as using the current 
serialization code, I want to start some discussion on what
it means to serialize versus pretty-print XML. 

Currently the serialization code is a pretty-printer. This
is causing a number of issues to come up. For example, the 
pretty-printing actually writes a document that is different 
than the one in memory (either through SAX or DOM). Is this
what we want? Could this cause problems with validation when 
reading the now serialized document?

I would suggest that the serializers be layered. The base
serializer should only print what is on the SAX stream or
in the DOM tree, nothing more. Then a pretty-printer can
extend this base implementation in order to make the nice
output that we currently have.

-- 
Andy Clark * IBM, JTC - Silicon Valley * [EMAIL PROTECTED]

Reply via email to