xml入门的问题
这个问题很简单,但是请不要置之不理,我查过api doc,但是没有头绪,因为我刚刚开始学xml编程
请不要告诉我search the google这样的话,如果我找的到不会来这发帖
问题是这样的
假如我有这么一个xml
<bookstore>
<book>
<title> book 1</tilte>
<name> a </name>
</book>
<book>
<title> book 2</title>
<name> b </name>
</book>
...还有其他book
</bookstore>
我要得到一个书名的列表 该怎么做
我现在可以做到Element root = doc.getDocumentElement();这一步,后面就不会了,主要是用哪个包里的那个方法
我看到网上有人用getChildElementValue(node,"tag");这样的代码,不过jb说找不到这个方法,faint~
请前辈给我写个代码