300 CHAPTER 10 USING FLASH TO DISPLAY (Top ten web hosting)

300 CHAPTER 10 USING FLASH TO DISPLAY XML firstChild and lastChild The firstChild and lastChildproperties return the first and last XMLNode objects in the XMLNode s list of child nodes: oXMLNode.firstChild oXMLNode.lastChild If there are no children, the lastChildproperty returns null. Note that text nodes are always the first child of their containing element. previousSibling and nextSibling These properties return the previous and next XMLNode objects that share the same parent as the current XMLNode object: oXMLNode.previousSibling oXMLNode.nextSibling nodeType Unlike the XML DOM property of the same name, this property returns a value of either 1 (element node) or 3 (text node) for the specified XMLNode: oXMLNode.nodeType Flash doesn t support the other numeric node type indicators from the recommendation. nodeName The nodeName property returns the name of the current XMLNode object: oXMLNode.nodeName Text nodes don t have a nodeName property. XMLNodes with a nodeType of 3 i.e., text nodes will return null. nodeValue The nodeValue property returns the content of the specified text node: oXMLNode.firstChild.nodeValue The preceding line finds the text within the oXMLNode element. Note that the text node is the firstChild of the XMLNode object. The property returns null for an element node (nodeType = 1). hasChildNodes() The hasChildNodes()method returns a Boolean value that indicates whether an XMLNode object has child elements: oXMLNode.hasChildNodes()
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.

Leave a Reply