Posted on 2009-09-18 11:55
S.l.e!ep.¢% 阅读(450)
评论(0) 编辑 收藏 引用 所属分类:
HTML
var objXMLDoc = new ActiveXObject("MSXML.DOMDocument");
objXMLDoc.async = false;
if( objXMLDoc.loadXML(strXml) )
{
Nodes = null;
Nodes = objXMLDoc.selectNodes("test/test1/test1");
nLength = Nodes.length;
if( nLength <= 0 )
return;
Attributes = null;
Attributes = Nodes(0).attributes;
nLength = Attributes.length;
if( nLength <= 0 )
return;
var attribute = Attributes.getNamedItem("1111");
if( attribute == null )
return;
if( attribute.value != "11111" )
return;
}