— Forest and the Trees

toXMLString

File this under either RTFM or “can I get that hour of my life back”, maybe both. To trace xml that is simple (e.g., one node), you need to use toXMLString.

public var myXML:XML =<root>
<item id=’1′/>
<item id=’2′/>
<item id=’2′/></root>

public function init(): void {
trace(myXML);
trace(‘*************@mID_n==2**************’);
trace(myXML.item.(@id==2));//traces 2 nodes
trace(‘************@mID_n==1***************’);
trace(myXML.item.(@id==1));//traces nothing
trace(‘***************************’);
trace(myXML.item.(@id==1).toXMLString());//traces the node
}

0 comments
Submit comment

Max win per set is 10 bonus with 80x wagering - http://spincasinomobile.com.