On the iReport documentation I found these XPath queries:
/addressbook/category@name
/addressbook/category/person@id
/addressbook/category/person+LASTNAME
/addressbook/category/person+FIRSTNAME
/addressbook/category/person+hobbies*hobby
My questions:
- Is
category@name
the same ascategory/@name
? - What's the meaning of
person+LASTNAME
? (The + to be precise) - What's the meaning of
person+hobbies*hobby
(The * to be precise)
They are applied to this XML:
<addressbook>
<category name="home">
<person id="1">
<LASTNAME>Davolio</LASTNAME>
<FIRSTNAME>Nancy</FIRSTNAME>
<hobbies>
<hobby>Radio Control</hobby>
<hobby>R/C Cars</hobby>
<hobby>Micro R/C Cars</hobby>
<hobby>Die-Cast Models</hobby>
</hobbies>
<email>[email protected]</email>
<email>[email protected]</email>
...
(Full XML here)