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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to eliminate "RecordCount" from DOMDocument XML?

Status
Not open for further replies.

SneezeDragon

Programmer
Mar 6, 2002
13
0
0
US
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:

Code:
Set objXMLDoc = CreateObject("MSXML2.DOMDocument.4.0")
Set objRoot = objXMLDoc.createElement("FResults")
objXMLDoc.AppendChild objRoot


RESULTING XML:

Code:
<FResults RecordCount=&quot;17&quot; Timestamp=&quot;2002-08-29 18:29:37&quot;>
...some added child nodes...
Code:
</FResults>

WHAT I REALLY WANT:

Code:
<FResults>
...some added child nodes...
Code:
</FResults>

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top