Hello I have an element like the following element
<part qty="1" description="Christmas Tree" Price="10eur"/>
I can access the part by
How would I add another attribute onto that?
I was thinking it was something like
xmlnod.attribute.add ... but there is no .add
Any ideas?
Thanks
<part qty="1" description="Christmas Tree" Price="10eur"/>
I can access the part by
Code:
XmlNodeList xmlNodLst = (XMLDoc.GetElementsByTagName("part");
if(xmlNodLst != null)
{
for (int i = 0; i < xmlNodLst.Count; i++)
{
XmlNode xmlnod = xmlNodLst[i];
}
}
I was thinking it was something like
xmlnod.attribute.add ... but there is no .add
Any ideas?
Thanks