Not weird. The more nodes you have, the greater the opportunity to
introduce an error.
XML is the one instance where you *should* code for IE. IE's XML
parsing is far more strict and standards-compliant than other
browsers'.
If you don't like XML, you could just write out JSON directly. You
don't *have* to use a function to do it (just as there is an example
for writing XML directly). There may be examples out there which will
help with markers; I don't know of any. Searching might find something
useful: http://www.google.co.uk/search?q=example+json_encode+php