xmlDocument createnode(xmlnodetype,string,string,string)帮助 [英] xmlDocument createnode(xmlnodetype, string, string, string) help

查看:47
本文介绍了xmlDocument createnode(xmlnodetype,string,string,string)帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用xmlDocument.createnode(xmlnodetype,string,string,string)来创建一个带前缀的元素;但是,我一直收到这个错误:

错误的参数数量或无效的属性分配

我正在这样做在javascript中。如何创建带前缀的元素?

I'mtrying to use xmlDocument.createnode(xmlnodetype, string, string, string) to create a element with a prefix; however, I keep getting this error:

Wrong number of arguments or invalid property assignment

I'm doing this in javascript. How do I create an element with a prefix?

var doc = new ActiveXObject('MSXML2.DOMDocument');

var myElm = doc.createNode(1,'soap','Envelope', 'http://schemas.xmlsoap.org/soap/envelope/');
var myOtherElm = doc.createNode(1, 'soap', 'Envelope', '');


推荐答案

 
Hi, 


这篇关于xmlDocument createnode(xmlnodetype,string,string,string)帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆