|
-
October 13th, 2003, 12:03 PM
#1
Help!!!
I am a novice at XML and trying to load a XML Document into a DOMObject I have created. For Example:
Dim xmldoc As MSXML2.DOMDocument30
Set xmldoc = CreateObject("Microsoft.XMLDOM")
' Check to see if document has data. If it does, don't build it
If (xmldoc.childNodes.length = 0) Then
' Build the XML document
Set root = xmldoc.CreateNode("element", "MyNode", "")
xmldoc.appendChild (root)
Set XMLFirstChild = xmldoc.CreateNode("element", "MySecondNode", "")
Set child = xmldoc.CreateNode("element", "Hello", "")
child.Text = "12345"
XMLFirstChild.appendChild (child)
root.appendChild (XMLFirstChild)
End If
Debug.Print xmldoc.xml
I want to Load in another XML file (or string) and append it - but I can't see how - somebody help please!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|