Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

XmlAttributeCollection update in XmlElement

$
0
0

Hi,

I am new to XML. I have doubt. I am updating value of XmlAttributeCollection in XmlElement, whether my XmlElement gets updated or I need to go with some method to update my value in XmlElement. Here my code,

XmlElement xntemplate = xmldoc.SelectSingleNode("//TableTemplate//ColumnStateXML//state//colref [@id='" + sPropName[1].Trim() + "']") as XmlElement;

 XmlAttributeCollection xattr = xntemplate.Attributes;

 xattr["width"].Value = "2830";

Please suggest me to proceed.

Thanks in Advance.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>