位置:海鸟网 > IT > ASP.NET >

各程序语言创建DOM对象的办法

VBScript
dim xmldoc
set xmldoc=createbject(“microsoft.xmldom”)


JavaScript
var xmldoc=new activexobject(“microsoft.xmldom”);
xmldo.load("order.xml");


VB
dim xmldoc
set xmldoc=createbject(“microsoft.xmldom”)


ASP
 <% DIM oXMLDOM
set oXMLDOM=server.CreateObject (“Microsoft.XMLDOM”)
oXMLDOM.load(“students.xml”)
%>


php
<?php
$doc=xmldocfile("xx.xml") or die("what emp")
$root=$doc->root();
?>