patriciaxxx
Programmer
I have the following code
Which should produce this
But for me it produces this
How do I get it to produce this
Code:
[COLOR=#204A87]Private Sub cmdAppendElement_Click()
Dim docXMLDOM As DOMDocument
Dim nodElement As IXMLDOMElement
Dim nodChild As IXMLDOMElement
Set docXMLDOM = New DOMDocument
Set nodElement = docXMLDOM.createElement("videos")
Set docXMLDOM.documentElement = nodElement
Set nodChild = docXMLDOM.createElement("video")
nodElement.appendChild nodChild
docXMLDOM.Save CurrentProject.Path & "\videos12.xml"
Set docXMLDOM = Nothing
End Sub
[/color]
Which should produce this
Code:
<?xml version="1.0"?>
<videos>
<video></video>
</videos>
But for me it produces this
Code:
<videos>
<video />
</videos>
How do I get it to produce this
Code:
<?xml version="1.0"?>
<videos>
<video></video>
</videos>