XML

by Deadron
Reads and writes XML files, letting you access the contents as an object tree.
ID:62764
 
Version 12: February 10, 2007
- At IainPeregrine's request, added a pretty_print option that will output indented XML for easier reading.

- At Goten84's request, added support for XML comments.

Version 11: November 19, 2006
- By popular demand (hi ACWraith!), changed attribute implementation to use params, which keeps the library from consuming lists.

- To further reduce list usage, changed children handling to only instantiate a list if necessary, not for every single element (what was I thinking?)

- Replaced usage of ACWraith's much-appreciated list library with list.Insert().

The API and behavior stays the same; these are purely internal changes.

Version 10: May 6, 2006
- Relaxed the encoding requirement. The library now assumes that DM can read whatever encoding you throw at it.

- Fixed a bug revealed by XML provided by PirateHead, in which a PUBLIC identifier was not being read correctly.

See this BYONDscape article for a full description of the library and what you can do with it.
The best resource on BYOND. This library is used extensively in all of my BYOND projects. Well made, bug free, easy to use. I can't suggest this library any more highly.
You can thank Gughunter for the existence of the library -- he asked for someone to create a very simple XML reader, and since it's a subject near and dear to my heart (and was educational for me), I went overboard and did a full-blown implementation.

As for bug free, you can thank Test-Driven Development...this was probably the first library I did where every feature was backed by a test that was written before the actual code.
The link to the instructional article is out of date. The article link should now be:
http://www.byond.com/members/ DreamMakers?command=view_post&post=36895

Cheers
Is this still useable?