N
newscorrespondent
My XML knowledge is extreemly limited but learning not quite fast enough!
I am getting some XML back from the USPS web service as a string
<?xml version="1.0"?>
<ZipCodeLookupResponse><Address ID="0"><Address2>6406 IVY
LN</Address2><City>GREENBELT</City><State>MD</State><Zip5>20770</Zip5><Zip4>1440</Zip4></Address></ZipCodeLookupResponse>
I create a System.Xml.XmlDocument and then load the string.
How do I access the value of "Address ID=" from within C# code using the
XMLDocument?
From one of my books I think this is an attribute but when I check it tells
me there are no attributes in the document.
Thanks
Tom Groszko
I am getting some XML back from the USPS web service as a string
<?xml version="1.0"?>
<ZipCodeLookupResponse><Address ID="0"><Address2>6406 IVY
LN</Address2><City>GREENBELT</City><State>MD</State><Zip5>20770</Zip5><Zip4>1440</Zip4></Address></ZipCodeLookupResponse>
I create a System.Xml.XmlDocument and then load the string.
How do I access the value of "Address ID=" from within C# code using the
XMLDocument?
From one of my books I think this is an attribute but when I check it tells
me there are no attributes in the document.
Thanks
Tom Groszko