Hello,

I seem to be having a problem with printing (prettyprint or not) my ECS
tree.  I've done a lot of testing, and it seems to be ECS which is
causing the problem.  When I print out my ECS tree it's not printing the
tags in the same order that I'm giving them to it.  First off, has
anyone had this problem?

I've been looking in the code.  I'm wondering why there is a Registry
and a RegistryList?  And why does the output(OutputStream) method use
the elements from the registrylist while the output(PrintWriter) use the
keys from the hashtable?  I'll have to do some checking to make sure
they are writing out the same way they are being stored in.

Well, certainly more testing is needed, but it's late.  I'll get on this
tomorrow, but I'm wondering if anyone else has run into this problem.

Basically, I do (in pseudocode)

xml.add(tag)
tag.add(tag2)
tag.add(tagA)
tag.add(tagB)
tag2.add(tag3)

which /should/ print something like

<xml>
  <tag>
    <tag2>
      <tag3>
    <tagA>
    <tagB>

/BUT/ I'm seeing something like this

<xml>
  <tag>
    <tagA>
    <tagB>
    <tag2>
      <tag3>

It's very weird.  All dependencies are correct.  That is, tags are in
the "right" spot in the tree, but are printed out in the wrong order in
respect to their siblings.

Any thoughts would be greatly appreciated.  I'll do more work on this
tomorrow,
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