Hi,
I have a xml document which is like this:
<profile document>
<Child name = profile1 id = 1>
</Child>
</profile document>
I want to add another element into this one and what is doing right now
with my code is overwrite the existing element... can someone help me?
<profile document>
<Child name = profile1 id = 1>
</Child>
<Child name = profile2 id = 2>
</Child>
</profile document>
XmlElement ChildElement =
parent.OwnerDocument.CreateElement(ChildElementNam e);
ChildElement.SetAttribute(ChildNameAttributeName, Child.Name);
ChildElement.SetAttribute(ChildIDAttributeName, Child.ID);
parent.AppendChild(ChildElement);
Cheers!
Claudi
*** Sent via Developersdex http://www.developersdex.com ***