RootElement Automation 'Microsoft XML, v6.0'.IXMLDOMElement SubRootElement Automation 'Microsoft XML, v6.0'.IXMLDOMElement MemberElement Automation 'Microsoft XML, v6.0'.IXMLDOMElement XMLDom Automation 'Microsoft XML, v6.0'.DOMDocument
CREATE(XMLDom); CREATE(RootElement); CREATE(SubRootElement); CREATE(MemberElement); XMLDom.loadXML('C:\Documents and Settings\kbc\Desktop\Work\Dev\Visual Basic\LabelMaker\LabelPrints\Labels.xml'); RootElement := XMLDom.documentElement; SubRootElement := XMLDom.createElement('label'); RootElement.appendChild(SubRootElement); MemberElement := XMLDom.createElement('value1'); SubRootElement.appendChild(MemberElement); MemberElement.text := 'KBC'; XMLDom.save('C:\Documents and Settings\kbc\Desktop\Work\Dev\Visual Basic\LabelMaker\LabelPrints\Labels.xml');
Comments
Hope this helps
Thomas
Thanks, after rectifying the above, I keep getting an error on this line:
I'm not familiar with this, is this something to do with the SubRootElement?
In 3.7 there are a lot of examples about using DOM in the BizTalk codeunits in the 890085xx-Range.
Don't hesitate to ask again if it doesnt work.
Hope this helps
Unfortunately we don't have the license to view the codeunit 6224. And I can't see the other 890085 ones.
From the above code, can I not append nodes to the root? How should this be done properly?
I just want to be able to keep appending "<label>" to the root "<labels>". i.e.