Hello Guys:
What am I doing wrong with this code? I can't seem to get it to simply add
an attribute to my node. The node already exists. I am simply opening the
XMLDocument and creating one attribute to the document. I am not creating
the document new
XmlNamespaceManager xnsm = new XmlNamespaceManager(xmlFile.NameTable);
xnsm.AddNamespace("a", "http://www.icsm.com/icsmxml");
XmlNode xNode = xmlFile.SelectSingleNode("//a:HeaderShipping", xnsm);
System.Xml.XmlAttribute attribute;
attribute..Name = "accountNumber";
attribute.Value = thirdPartyShipping;
xNode.Attributes.Append(attribute);
Thanks
Andy