'xml' Example : xml : Object Tags HTML CSS TUTORIALS


HTML CSS TUTORIALS » Object Tags » xml »

 

'xml' Example



    
<html>
    <xml id="myOwnData">
        <myData>
            <firstname>Joe</firstname>
            <lastname>Yin</lastname>
            <age>12</age>
        </myData>
    </xml>
    <script>
    if (myOwnData.readyState == "complete")
       window.alert ("The XML document is ready.");

    var oNode = myOwnData.XMLDocument.selectSingleNode("myData/firstname");
    alert(oNode.text);
    </script>
</html>
    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Object Tags
» xml