Posts tagged "e4x"

E4X : Retrieving a sibling of a node

One of the advantages of XML is that you can easily represent related information with a parent / child relationship. This makes it easy to parse, and understand. However, some XML formats (such as Apple’s plist format), represent relationships via proximity on the same level.

For example, one way to represent name / value pairs in XML could be:

Continue reading…