replacing value on an xmlnode

I am creating an xml file. While creation, I remember certain XMLnodes in separate xmlnode elements

After the xml is finally created I need to replace the value of those nodes.

mynode.value = “text” raises an xmlexception

anything else I could try?

You probably need to append a text element as a child of mynode like mynode.appendchild(.createtextelement(“text”)).

Thanks.

Actually mynode already had a child as xmltextelement.

I was trying mynode.value = “Text” which did not work. but

mynode.firstchild.value = “Text” was the right thing