by Deadron
Reads and writes XML files, letting you access the contents as an object tree. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Deadron.XML##version=12

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 12
Date added: Mar 15 2003
Last updated: Jul 29 2009
11 fans
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.


Xyren: (Mar 31 2013, 10:23 pm)
Is this still useable?
BigJMoney: (Apr 8 2011, 1:13 pm)
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

Deadron: (Apr 11 2009, 1:30 pm)
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.
IainPeregrine: (Apr 11 2009, 10:47 am)
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.