RE: relying on ordering of sibling XML elements
> Elliotte Rusty Harold <elharo@m...> > Asunto: > > XML is absolutely ordered. You're free to ignore > that order, but > parsers must and do preserve it. People who assume > order doesn't > matter tend to to be thinking too hard about > record-like structures > and forgetting completely about XML's original > use-case of > narrative-like structures. > -- > Not only records--for me, I was leery of using the ordering of sibling elements because I was thinking of an XML document in its tree/node representation. In this form, nodes with a common parent really don't have an order with respect to each other--so I was concerned parsers might lose the ordering. But Richard showed where the XML Infoset specs say that elements actually are ordered. And since parsers must preserve the ordering, my "unofficial" reliance on ordering can now be made official! Thanks, Glen _________________________________________________________ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format