Hello,

Well, I found the culprit that reorders the elements in the tree.  When
printing via OutputStream, the code gets a list of elements from the
Vector registryList.  that vector is FIFO, and keeps things in order. 
When printing via PrintWriter, you get a list of "child" elements via
the hashtable, which does /not/ keep things in a FIFO.  What was the
thinking behind this?  Once I changed the code in output(PrintWriter) to
use the registryList instead of registry, the elements all printed out
fine.  I can post the patch if anyone is wondering.

Also, the filter class should be fixed to /not/ filter whitespace if the
element is an XML object.  Currently it is doing this:

<tag>this is my sentence.  I just left two spaces</tag>

and filtering it to

<tag>this is my sentence. I just left two spaces</tag>

While the filter should correctly convert entities, it should not rip
out spaces at end of sentences.  I'll fix that later today.

Anyway, I am curious as to why a hashtable was used when it won't keep
things in a "FIFO" order, which is important when printing the tags.

Thanks,
Seth


--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to