Versatile xml attribute regex with javascript
问题 Basically I have an xml document and the only thing I know about the document is an attribute name. Given that information, I have to find out if that attribute name exists, and if it does exist I need to know the attribute value. for example: <xmlroot> <ping zipcode="94588" appincome = "1750" ssn="987654321" sourceid="XX9999" sourcepw="ioalot"> <status statuscode="Success" statusdescription="" sessionid="1234" price="12.50"> </status> </ping> </xmlroot> I have the names appincome and