Parse XML & Retrieve Info Several layers of Nodes Deep Java/Android

后端 未结 2 1342
梦毁少年i
梦毁少年i 2021-01-28 01:07

I am working from an example provided by my professor which gets data from a weather forecast site and parses the XML file to show the weather conditions in a list. My program

2条回答
  •  再見小時候
    2021-01-28 01:42

    Use SAX and only pay attention to the html_instructions tag. Your handler will be called with startElement() for each element and is passed in the element's name. Compare that name to "html_instructions". When you have a match, pay attention to all processed nodes until the corresponding endElement() call.

提交回复
热议问题