xpath - Xquery: Dividing the attribute value by spaces -


so i'm trying country codes of river.

<river id="river-donau" country="srb d h hr sk bg ro md ua"> </river> 

how can access them individually?

this splits attribute @ whitespace, allowing multiple following each other, , returns them sequence:

//@country/tokenize(., '\s+') 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -