aspx thread: XML: Setting an attribute of the root element (updated with code
example!)
This is what I am trying to do:
public void setKeyField (string strKeyField, string
strKeyFieldValue)
{
XmlAttribute objAttribute;
objAttribute = this.objXML.CreateAttribute("",
"keyField", "");
objAttribute.Value = strKeyField;
((XmlElement)this.objXML.ChildNodes[0]).SetAttributeNode(objAttribute);
}
Any clues? :)
Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com