My xml file has a line:
<asin ISBN="0001714600 9780001714601" code="aB1234Av">
I want to extract ISBN[0] i.e
0001714600 9780001714601
or ISBN[1] i.e
0001714600 9780001714601
I tried substring and tokenize but its not working to my desire. Heres my code:
<strong>{for $asin in doc('amazon.xml')/asin/@ISBN
return (tokenize($asin/data(.),'\s'))}</strong>
(OR)
<strong>{for $asin in doc('amazon.xml')/asin/@ISBN
return (substring($asin/data(.),1))}</strong>
How should i get that value out of it?