[jdom-interest] Integrity of XML order?
    Jason Hunter 
    jhunter at collab.net
       
    Wed Aug 23 14:10:52 PDT 2000
    
    
  
Mike Chambers wrote:
> 
> 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? 
Yep.  We currently preserve attribute order too, although unlike Element
order that's not required by XML.
-jh-
    
    
More information about the jdom-interest
mailing list