更新时间:2022-05-08 05:31:41
如果您使用的是 SAXParcer,请查看 sax parcer 实现示例:
If you are using SAXParcer, see an example of sax parcer implementation:
http://mobile.tutsplus.com/tutorials/android/android-sdk-build-a-simple-sax-parser/
请注意方法
public void startElement(String uri, String localName, String qName,
Attributes attributes) throws SAXException
在这里您可以检查属性及其值
here you can check attributes and their values
if(localName.equals("outline"))
String txtValue= attributes.getValue("text");