DOM XML Parser Example

后端 未结 3 1434
春和景丽
春和景丽 2020-11-30 10:46

I have this XML file.I just parse this XML file.This example shows how to get the node by “name”, and display the value.How to show all records from database?



        
3条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 11:21

    You can try this code in the loop.

    Node nNode = nList.item(temp);
    NodeList list = nNode.getChildNodes();
    list.item(0).getTextContent();
    

提交回复
热议问题