怎么获取xml数据的某节点的值?
怎么获取xml数据的某节点的值?<?xml version="1.0" encoding="UTF-8"?>
<books>
<book id="bk101">
<title>Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
<book id="bk102">
<title>Python Programming</title>
<author>John Smith</author>
<year>2020</year>
<price>45.99</price>
</book>
</books>
怎么获取书名,也就是数据中的title对应的值?
页:
[1]