Class com.sekati.data.XML2Object

Description

return an object with the content of the XML translated
note: a node name with "-" will be replaced with "_" for flash compatibility. for example will become FIRST_NAME If a node has more than 1 child with the same name, an array is created with the children contents

 The object created will have this structure:
 	obj {
 		nodeName : {
 			attributes : an object containing the node attributes
 			data : an object containing the node contents
 		}
 	}	
 	Usage:
 		var data:Object = new XML2Object().parseXML(myXML);
 

Field Index

xml

Method Index

parseXML()

Field Detail

xml

public xml:XML [Read Only]
return the xml passed in the parseXML method
 Usage: 
 	theXML = XML2Object.xml
 

Method Detail

parseXML

function parseXML(sFile:XML):Object

parse an XMLObject

Parameters

sFile(XML)

Return

Object - the contents of the parsed XML

 Usage:
 	XML2Object.parseXML( theXMLtoParse );