SAX解析xml
<?xml version="1.0" ?><libirary>
<category id="1" name="武侠" >
<book id="1">
<name>水浒传</name>
<author>施耐庵</author>
<description>黑社会的屈服</description>
<path>d:/aaa.txt</path>
</book>
</category>
<category id="2" name="言情" >
<book id="1">
<name>水浒传</name>
<author>施耐庵</author>
<description>黑社会的屈服</description>
<path>d:/aaa.txt</path>
</book>
</category>
</libirary>
在上述xml文件中,我想通过category的 id="1"获得子节点中的所有name的值,怎么实现呢,请大仙们帮忙!!!!