[jdom-interest] Integrity of XML order?

Mike Chambers mesh at speakeasy.org
Wed Aug 23 15:38:43 PDT 2000


If I have the following XML:

 <Row>
           <Label name="label_1">
               value_1
          </Label>
           <Label name="label_2">
               value_2
           </Label>
  </Row>

And access it with Jdom :

     SAXBuilder builder = new SAXBuilder(true);
     Document doc = builder.build(new File(args[0]));

Am I guaranteed to get the data in the order that it is in the XML? (i.e.
I'll get label_1 before label_2)?

Thanks in advance (I hope)...

Mike Chambers

mesh at speakeasy.org




More information about the jdom-interest mailing list