<?xml version="1.0"?>
<catalog>
<book id="Adventure">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<price>44.95</price>
<misc>
<Publisher id="5691">
<PublisherLocation>Los Angeles</PublisherLocation>
</Publisher>
<PublishedAuthor fName="Gambardella">
<StoreLocation>Store B</StoreLocation>
</PublishedAuthor>
</misc>
</book>
<book id="Adventure">
<author>Ralls, Kim</author>
<title>Midnight Rain</title>
<price>5.95</price>
<misc>
<Publisher id="4787">
<PublisherLocation>New York</PublisherLocation>
</Publisher>
<PublishedAuthor Name="Ralls">
<StoreLocation>Store B</StoreLocation>
</PublishedAuthor>
</misc>
</book>
</catalog>
到PublishedAuthor的路徑是與一個字符除外兩本書一樣。是否可以爲此角色設置通配符,以便它可以接受XPath?VBA Xpath的通配符快報
<catalog/book/misc/PublishedAuthor[@fName=]/
產生了完全相同的結果爲:
<catalog/book/misc/PublishedAuthor[@Name=]/
Thanks!但是如果它是該屬性之後的節點呢?從上面的示例中,說一些像'
NRH
對不起,我的意思是更像'
NRH