10.9.2 Parsing Xml

The static method Xml.parse can be used to parse XML data and obtain a Haxe value from it.

var xml = Xml.parse('<root>Haxe is great!</root>').firstElement();
trace(xml.firstChild().nodeValue);