SneezeDragon
Programmer
I'm creating an XML document with MS Visual Basic 6.0, using the MSXML2.DOMDocument.4.0 object. When I use this object model, my first XML node automatically acquires timestamp and recordcount attributes. I don't want any attributes. How do I prevent this from happening?
CODE SNIPPET:
RESULTING XML:
...some added child nodes...
WHAT I REALLY WANT:
...some added child nodes...
Thanks in advance.
CODE SNIPPET:
Code:
Set objXMLDoc = CreateObject("MSXML2.DOMDocument.4.0")
Set objRoot = objXMLDoc.createElement("FResults")
objXMLDoc.AppendChild objRoot
RESULTING XML:
Code:
<FResults RecordCount="17" Timestamp="2002-08-29 18:29:37">
Code:
</FResults>
WHAT I REALLY WANT:
Code:
<FResults>
Code:
</FResults>
Thanks in advance.