I am using libxml2 library in C to parse an xml document. I am trying to count the no. of tags <Book>. I tried using
"count(//Book)". But I want the number rather than the node-set. Is there an xpath expression to do this?
<?xml version="1.0" ?>
- <Book List>