21,890
社区成员
发帖
与我相关
我的任务
分享
objXmlDoc = new ActiveXObject("MSXML2.DOMDocument");
objXmlDoc.async = false;
objXmlDoc.resolveExternals = false;
var objNode = objXmlDoc.createProcessingInstruction("xml","version='1.0'");
objXmlDoc.appendChild(objNode);
objNode = null;
var objRoot = objXmlDoc.createElement("Root");
objXmlDoc.appendChild(objRoot);
objXmlDoc.documentElement.setAttribute("xmlns:dt","urn:schemas-microsoft-com:datatypes");
/*二进制数据*/
objNode = objXmlDoc.createElement("RoleList");
objNode.dataType = "bin.base64"; /*bin。base64编码*/
var objAttribute = objXmlDoc.createAttribute("Content");
objAttribute.value = strContent;
objNode.setAttributeNode(objAttribute);
objAttribute = null;
objRoot.appendChild(objNode);
objXmlHttp.open("POST","/xml/test.php,false);
objXmlHttp.onreadystatechange = SaveDiscussInfosBack;
objXmlHttp.send(objXmlDoc);
Set objXmlDoc = Server.CreateObject("MSXML2.DOMDocument")
objXmlDoc.load (Request.Binaryread(Request.Totalbytes))
Set nodeList = objXmlDoc.SelectSingleNode("Root/RoleList")
strContent =nodeList.getAttribute("Content")
Set objXmlDoc = Nothing