[jdom-interest] Are Children under an Element returned in the proper order
Richard Cook
rpc at prismtechnologies.com
Thu Mar 8 08:42:41 PST 2001
Well it's essential because XML elements are ordered - if the DTD says
"<!ELEMENT z (a,b,c)>" then JDOM needs to give you a,b,c so I'm sure it's by
intent.
> -----Original Message-----
> From: jdom-interest-admin at jdom.org
> [mailto:jdom-interest-admin at jdom.org]On Behalf Of Aspi Siganporia
> Sent: Thursday, March 08, 2001 4:32 PM
> To: jdom-interest at jdom.org
> Subject: RE: [jdom-interest] Are Children under an Element returned in
> the proper order
>
>
> Hi,
>
> I made this query and am quite interested in the final conclusion.
>
> It is clear, as I had suspected, that order is maintained as a side
> effect but not as an intention.
>
> Since the JDOM implementation seems to provide the order by list
> implementation with no additional cost, couldn't we just make it an
> intent.
>
> I see a lot of value in being able to extract Element children in the
> correct order.
>
> Thanks
> Aspi
>
>
> > -----Original Message-----
> > From: jdom-interest-admin at jdom.org
> > [mailto:jdom-interest-admin at jdom.org]On Behalf Of Richard Cook
> > Sent: Thursday, March 08, 2001 8:13 AM
> > To: jdom-interest at jdom.org
> > Subject: RE: [jdom-interest] Are Children under an Element
> > returned in
> > the proper order
> >
> >
> >
> > > >
> > > > When we invoke the method Element.getChildren() does
> > the return list
> > > > maintain the order in which the children existed in the XML.
> > >
> > > In practice it may happen but there is no code to enforce this.
> >
> > I hope that's not true - implementing it via a list is how
> > it's enforced?
> >
> > > _______________________________________________
> > > To control your jdom-interest membership:
> > > http://lists.denveronline.net/mailman/options/jdom-interest/yourad
> > dr at yourhost.com
> >
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-interest/
> > youraddr at yourhost.com
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yourad
dr at yourhost.com
More information about the jdom-interest
mailing list