Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: XML: Setting an attribute of the root element (updated with code example!)


Message #1 by "Oliver, Wells" <WOliver@l...> on Tue, 22 Oct 2002 10:45:24 -0700
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


  Return to Index