'xml' Example : xml « HTML Tag Reference « HTML CSS Reference






'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>
    
      
      








Related examples in the same category

1.'xml' Syntax and Note
2.'xml' HTML Attributes
3.'xml' Event Handlers
4.'xml' CSS Attributes and JavaScript Style Properties
5.'xml' Microsoft Behaviors
6.'xml' JavaScript Properties
7.'xml' JavaScript Methods
8.'xml' JavaScript Collections