Helma logo
helma.org » Home > Stories > XML.readFromString()

XML.readFromString()

Reads an XML tree from a string and transforms it into a HopObject.

Syntax
Xml.readFromString(String)
Xml.readFromString(String, HopObject)

If an optional HopObject is specified, the HopObject derived from the XML tree will be added to it.

Example
var f = new File("/tmp/dump.xml");
var obj = Xml.readFromString(f.readAll());
res.write(obj);
HopObject message


... comment


Page last modified on 2002-07-12 16:09 by tobi