How can I get the number of the nodes of an external file xml

Q

Qiwen

I have an external file data.xml.
The structure of the data.xml is like this:
<invoice>
<item>...</item>
<item>...</item>
<item>...</item>
<item>...</item>
</invoice>

How can I get the number of the nodes(item).

I tried
{INCLUDETEXT "data.xml" \c XML \x //invoice/count()\* MERGEFORMAT}
but it doesn't work. Any idea? Thanks a lot!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top