On 2002.05.15, Sean Russell <ser / germane-software.com> wrote:
> 2.3.3: 
> * Added an alternate pretty printer by Thomas Sawyer; it is in the contrib/ 
> directory. 

Does this one not break the XML document?  AFAIK, the current pretty
printer does NOT output a document that's identical to the one
represented in memory:

<blah><foo>abc</foo><bar>def</bar></blah>

gets printed as:

<blah>
  <foo>
    abc
  </foo>
  <bar>
    def
  </bar>
</blah>

The problem is that whitespace _between_ tags isn't ignored
by default by other XML parsers.  So, they'll parse this like:

<blah><foo>\n    abc\n  </foo><bar>\n    def\n  </bar></blah>

Or, something like that.  What the pretty-printer really
needs to output is:

<blah>
  <foo>abc</foo>
  <bar>def</bar>
</blah>

I'll have to grab the 2.3.3 release and bring the pretty printer
back to 2.2.2 if this is what Tom's pretty printer does, otherwise,
is it a big deal to get the pretty printer I'm asking for?

Sean, thanks for a great XML package!  It's made adopting Ruby for
a project a very painless task!

-- Dossy

-- 
Dossy Shiobara                       mail: dossy / panoptic.com 
Panoptic Computer Network             web: http://www.panoptic.com/ 
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)