Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Problem creating XML from scratch with MSXML and VB 6 Problem creating XML from scratch with MSXML and VB 6To: NULL Date: 7/1/2005 6:11:00 AM I'm trying to create an xml file from scratch using MSXML and VB 6. The result I'm after is this: <myApp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Schemas\mySchema.xsd"> Using this code: Set tmpXnode = xmlprs.createNode(NODE_ELEMENT, "myApp", "") Set tmpAnode = xmlprs.createNode(NODE_ATTRIBUTE, "xsi:noNamespaceSchemaLocation", "xsi") tmpAnode.nodeTypedValue = "Schemas\mySchema.xsd" tmpXnode.Attributes.setNamedItem tmpAnode I get this: <myApp xmlns:xsi="xsi" xsi:noNamespaceSchemaLocation="Schemas\mySchema.xsd"> THE PROBLEM: How can I replace "xsi" with "http://www.w3.org/2001/XMLSchema-instance" ? Or, how can I create this using code similar to the above? I would prefer not to re-write everything using a writer. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
