A
AliRezaGoogle
Dear Members,
I want to find a collection of nodes with certain attributes.
For example I want to retrieve every books with name = “NLP of MT”
from this XML document:
<inventory>
<books>
<book Name = “CS”> </book>
<book Name = “NLP of MT”> </book>
<book Name = “MT”> </book>
</books>
</inventory>
This can be easily expressed in SQL like:
“ SELECT * FROM INVENTROY.BOOKS WHERE NAME = ‘NLP of MT’ “
How can I do this with XPath? Other ways are highly welcomed.
Please provide me a clear snippet of code.
Many thanks in advance,
I want to find a collection of nodes with certain attributes.
For example I want to retrieve every books with name = “NLP of MT”
from this XML document:
<inventory>
<books>
<book Name = “CS”> </book>
<book Name = “NLP of MT”> </book>
<book Name = “MT”> </book>
</books>
</inventory>
This can be easily expressed in SQL like:
“ SELECT * FROM INVENTROY.BOOKS WHERE NAME = ‘NLP of MT’ “
How can I do this with XPath? Other ways are highly welcomed.
Please provide me a clear snippet of code.
Many thanks in advance,