Node Type | Example |
---|---|
Document type | <!DOCTYPE food SYSTEM "food.dtd"> |
Processing instruction | <?xml version="1.0"?> |
Element | <drink type="beer">Carlsberg</drink> |
Attribute | type="beer" |
Text | Carlsberg |
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM") |
set xmlDoc = CreateObject("Microsoft.XMLDOM") |
set xmlDoc = Server.CreateObject("Microsoft.XMLDOM") |
<script language="JavaScript"> var xmlDoc = new ActiveXObject("Microsoft.XMLDOM") xmlDoc.async="false" xmlDoc.load("note.xml") // ....... processing the document goes here </script> |
<script language="JavaScript"> var text="<note>" text=text+"<to>Tove</to><from>Jani</from>" text=text+"<heading>Reminder</heading>" text=text+"<body>Don't forget me this weekend!</body>" text=text+"</note>" var xmlDoc = new ActiveXObject("Microsoft.XMLDOM") xmlDoc.async="false" xmlDoc.loadXML(text) // ....... processing the document goes here </script> |