Jose and I were talking online on MSN, and we thought this strategy would be a more optimized way of writing to xml files, using Chris's LoadXml() idea in concert with these udf's, idea being something like:

$xml = LoadXml("t.xml")

WriteXmlString($xml, "shawn/jose", 100)

WriteXmlString($xml, "shawn/jose2/somesetting/option1", 200)

SaveXml($xml)

$xml = 0