I´m starting using xquery and I want to know how to get the values from 2 different type of tags.
for example:
xml
<elementType>value</elementType>
<otherElementType>value</elementType>
<elementType>value</elementType>
<elementType>value</elementType>
xquery
"for $b in $doc//elementType return stringg($b)"
"for $b in $doc//otherElementType return stringg($b)"
I want this but only using one query, how can that be done?
Use what is possibly the shortest expression: