298 CHAPTER (Web hosting india) 10 USING FLASH TO DISPLAY
Monday, November 26th, 2007298 CHAPTER 10 USING FLASH TO DISPLAY XML Like the XML DOM methods, using createElement() in ActionScript generates an element without a position in the document tree. You then need to position it using either the appendChild() or insertBefore() methods of the XMLNode class. createTextNode(value:String) The createTextNode()method returns a text node from the value argument: var oTextNode:XMLNode = oXML.createTextNode(”Some text”); Again, this node has no position in the document tree and will need to be positioned using appendChild() or insertBefore(). parseXML(value:String) The parseXML()method parses text within the value parameter and populates an XML object: var XMLString:String = “
In case you need quality webspace to host and run your web applications, try our personal web hosting services.