0
我是RapidXml的入門者。RapidXml:選擇first_attribute值
<catalog>
<book id="bk101" value="ABCDEFGHIJKLMNOPQRSTUVWXYZ">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.</description>
</book>
<book id="bk102" value="ABCDEFGHIJKLMNOPQRSTUVWXYZ">
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
<genre>Fantasy</genre>
<price>5.95</price>
<publish_date>2000-12-16</publish_date>
<description>A former architect battles corporate zombies,
an evil sorceress, a
nd her own childhood to become queen
of the world.</description>
</book>
</catalog>
對於這個XML我怎麼只能選擇當id="bk102"
,然後解析value="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
?
非常感謝!
很多很多的感謝謝爾蓋。它的工作很棒! :) – Shahparan
@Shahparan,這沒什麼!很高興幫助。 –