问题描述
<?xmlversion="1.0"encoding="ISO-8859-1"?>2:<!DOCTYPEdblpSYSTEM"dblp.dtd">3:<dblp>4:<incollectionmdate="2002-01-03"key="books/acm/kim95/AnnevelinkACFHK95">5:<author>JurgenAnnevelink</author>6:<author>RafiulAhad</author>7:<author>AmeliaCarlson</author>8:<author>DanielH.Fishman</author>9:<author>MichaelL.Heytens</author>10:<author>WilliamKent</author>11:<title>ObjectSQL-ALanguagefortheDesignandImplementationofObjectDatabases.</title>12:<pages>42-68</pages>13:<year>1995</year>14:<booktitle>ModernDatabaseSystems</booktitle>15:<url>db/books/collections/kim95.html#AnnevelinkACFHK95</url>16:</incollection>17:<incollectionmdate="2002-01-03"key="books/acm/kim95/Blakeley95">18:<author>JoséA.Blakeley</author>19:<title>OQL[C++]:ExtendingC++withanObjectQueryCapability.</title>20:<pages>69-88</pages>21:<booktitle>ModernDatabaseSystems</booktitle>22:<url>db/books/collections/kim95.html#Blakeley95</url>23:<year>1995</year>24:</incollection>25:<incollectionmdate="2004-03-08"key="books/acm/kim95/BreitbartGS95">26:<author>YuriBreitbart</author>27:<author>HectorGarcia-Molina</author>28:<author>AbrahamSilberschatz</author>29:<title>TransactionManagementinMultidatabaseSystems.</title>30:<pages>573-591</pages>31:<booktitle>ModernDatabaseSystems</booktitle>32:<crossref>books/acm/Kim95</crossref>33:<url>db/books/collections/kim95.html#BreitbartGS95</url>34:<year>1995</year>35:</incollection>文档信息类似于这个问题是提取这个XML文档中所有的author和author参与的title生成以这个AUTHOR为文件夹在文件夹下生成一个文本里面是他所参与的title求助th13teen@sina.com
解决方案
解决方案二:
使用JS更方便些··这是DOM编程的思想··楼主可以自己Google一下··
解决方案三:
使用Dom4J很好处理的
解决方案四:
GOOGLE了很多中间都有错误
解决方案五:
引用2楼inhibitory的回复:
使用Dom4J很好处理的
恩,用这个就行了,网上找找例子,很容易上手的!