Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/XML-Output/VBScript/xml-output.vb
Normal file
17
Task/XML-Output/VBScript/xml-output.vb
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Set objXMLDoc = CreateObject("msxml2.domdocument")
|
||||
|
||||
Set objRoot = objXMLDoc.createElement("CharacterRemarks")
|
||||
objXMLDoc.appendChild objRoot
|
||||
|
||||
Call CreateNode("April","Bubbly: I'm > Tam and <= Emily")
|
||||
Call CreateNode("Tam O'Shanter","Burns: ""When chapman billies leave the street ...""")
|
||||
Call CreateNode("Emily","Short & shrift")
|
||||
|
||||
objXMLDoc.save("C:\Temp\Test.xml")
|
||||
|
||||
Function CreateNode(attrib_value,node_value)
|
||||
Set objNode = objXMLDoc.createElement("Character")
|
||||
objNode.setAttribute "name", attrib_value
|
||||
objNode.text = node_value
|
||||
objRoot.appendChild objNode
|
||||
End Function
|
||||
Loading…
Add table
Add a link
Reference in a new issue