I'm adding child nodes to an existing node using VBScript. But the problem is that the output is something like this
<parentNode>
<childNode/><addedChildNode/><anotherAddedChildNode/></parentNode>
And I need them to be like this:
<parentNode>
<childNode/>
<addedChildNode/>
<anotherAddedChildNode/>
</parentNode>
I've tried to add a text node after each line that contains either vbCr
, vbCrLf
, vbLf
, or vbNewLine
like this
Set newLineNode= xmlDoc.createTextNode(vbCrLf)
parentNode.appendChild(newLineNode)
But in any case, it gives me the following:
<parentNode>
<childNode/>
<addedChildNode/>
<anotherAddedChildNode/>
</parentNode>
What do you think should be done? And by the way the no of child nodes may reach around 400. And the file may be checked by other users. So format DOES matter.