getting attribute value of an element in xml file [modified]
-
i have a xml file as follows.... now i need to get the attribute "id" value "1234" which is in "performer" by using ASP classic code. please any one help me pleaseeeeeeeeeeeeeee.... Pradeep Reddy -- modified at 3:19 Friday 10th August, 2007
-
i have a xml file as follows.... now i need to get the attribute "id" value "1234" which is in "performer" by using ASP classic code. please any one help me pleaseeeeeeeeeeeeeee.... Pradeep Reddy -- modified at 3:19 Friday 10th August, 2007
-
i have a xml file as follows.... now i need to get the attribute "id" value "1234" which is in "performer" by using ASP classic code. please any one help me pleaseeeeeeeeeeeeeee.... Pradeep Reddy -- modified at 3:19 Friday 10th August, 2007
for C#
FileStream fs = new FileStream(filepath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load(fs);
XmlNodeList xmlnode = xmldoc.GetElementsByTagName("result");
string id = xmlnode[0].Attributes[0].Value;hope this will work
Becoming Programmer...