I have below a sample parent-child xml that I'm trying to
manipulate
<Persons>
<Person Id='1'/>
</Persons>
I will have a string that I want to append to my existing
xml shown below:
"<Person Id='1'/>"
My question is, instead of creating a new node using the
createnode method of the xml document, I want to append
the string that I have to the xml. I noticed that there
is a "createtextnode" method but it doesn't do what I
need it to do. How can I create an element node with the
string that I have, because by using the "createnode"
method, I have to specify a name, etc..
Thanks,
Oleg Tkachenko - 31 Jul 2003 09:25 GMT
> I have below a sample parent-child xml that I'm trying to
> manipulate
[quoted text clipped - 14 lines]
> string that I have, because by using the "createnode"
> method, I have to specify a name, etc..
Seems like you are talking about InnerXml property. You can get InnerXml
property of Persons element, append your string and set is back - it'll be
parsed and all necessary nodes will be created. Beware, it involves parsing,
so make sure you are keeping wellformdness.

Signature
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel