Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Very basic XML question, I am sure... Very basic XML question, I am sure...To: NULL Date: 8/2/2004 9:57:00 AM I am new to XML, and am trying to create a brand new document. I don't want
to use myXML.load('....');
I need to create the nodes with functions of MSXML.
This is what I have. (Delphi code, but understandable)
outMSXML.loadXML('<?xml version = ''1.0''?>');
rootNode := outMSXML.DocumentElement;
newNode := outMSXML.createNode(1, 'NLIS_MESSAGE',
'http://www.www.www/NS/2001-01-10');
rootNode.appendChild( newNode );
However, this is wrong. For a start, rootNode is nil, as there isn't a node
yet. How do I start it off? How do I create the first line? Below, os what I
am trying to obtain.
<NLIS_MESSAGE xmlns="http://www.www.www/NS/2001-01-10"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xsi:schemaLocation="http://www.www.www/NS/2001-01-10 LA_Requests.xsd">
<NLIS_HEADER>
<INTERFACE_VERSION_NUMBER>6.00</INTERFACE_VERSION_NUMBER>
.....
Thanks,
Craig
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
