Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with XML with namespace

Status
Not open for further replies.

yera2002

Programmer
Jul 14, 2015
1
MX
Hi:

I have a request it's a XML with the namespace and the schema like this:

-<eu:AddendaEU xsi:schemaLocation=" xmlns:eu="
However I create this

-<eu:AddendaEUndaEU xmlns:xsi=" xmlns:eu=" xsi:schemaLocation="
The XML that I have created it has a extra node. So they tell me that's wrong. If I remove this extra node I have an error. So I want to know what can I do?

This is my code:

Set objDom = CreateObject("Msxml2.DOMDocument.3.0")

ns = "xsi = "
Set objRoot = objDom.createNode(1, "eu:AddendaEU", ns)
objRoot.setAttribute "xsi:schemaLocation"," objRoot.setAttribute "xmlns:eu","objRoot.setAttribute "xmlns:xsi","
Can anybody help me?
 
Check your Msxml2.DOMDocument.3.0 with the MSXML you have installed. Is it version 3? If it is version 6, it should be 6.0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top