attributes fetching

msrnivas

New member
Joined
Mar 31, 2005
Messages
2
Programming Experience
Beginner
Hi

I am doing xml parsing in ASP.NEt .i am getting prob with attributes.How to get attribut values.

my xml looks like


<PhoneList>
<Phone Number='12234' CID='244' />
</PhoneList>
<AsID>100</AsID>

my code is

XmlDocument xDoc = new XmlDocument();
xDoc.Load(strxml);
XmlNodeList asid = xDoc.GetElementsByTagName("AsID");


here i can get asid without any problem.How to get the Number and CID from above xml?
pl advice me
 
Top Bottom