问题
I am parsing an XML file in which certain element having attributes. Is there any way to get the attribute value using methods given in android SAX package?
回答1:
Here's my real answer. :) You probably meant android.sax.
Then you need to add a StartElementListener and in start() you'll find your Attributes.
来源:https://stackoverflow.com/questions/6070674/parse-xml-to-get-attribute-value-in-android-using-android-sax-packages-mathods