Discussion Locked

Simplify XML Code

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Tell us what you think about our tips on simplifying XML code. Do you find these tips useful?

3 replies

by jasoncfoster

I find that context in an XML document is as important as the data. That's the beauty of XML as a communication vehicle. Therefore, I would disagree with the removal of the container as described in the first tip.

I've worked with XML documents representing order information that were quite large. Containers were extremely important for readability even if they didn't supply additional information with attributes. It would have been very difficult to follow a document if all of the child elements were directly under the root element.

XPath into the nodelist would have been smaller, but the logical constructs that containers provide made the XPath simpler.

This discussion is closed to new replies.