XML Generation

Hi

I have been tring to add/modification/deletion node in xml using lotus script.

Still am facing a problem doing the same.

If anyone has examples for xml node add/mod/del kindly send across to me.

Subject: XML Generation

It works the same in LotusScript as it does in JavaScript, Java, etc. The W3C DOM is the W3C DOM.

To create:

Set newNode = rootDoc.CreateElementNode(TagName)

Call newNode.SetAttribute(“AttribName”,“Value”)

Set newTextNode = rootDoc.CreateTextNode(“Your sring goes here”)

To position:

Call parentNode.AppendChild(newNode)

Call newNode.AppendChild(newTextNode)

To modify, either change the attribute(s) using SetAttribute, or change the data by getting the child data/text node and changing the string.

I should add here that there a oodles of resources out there, including the W3C itself (linked to from Designer Help) and MSDN, and that Designer Help itself has excellent code examples for the DOM methods. Please don’t expect other people to do your work for you – you have to put in a little effort yourself.