removed dependency on mozilla-rhino classes in xmltools, added function XmlWriter.writeDocToString