Possible Duplicate:
Tokenizing in Xquery
Let string a = “http://ontheland.com/letus/tag/present?page=20&type=0“, need to tokenize this string where i want to get “20” as integer. The main issue with this is how to tokenize “&”. I have been trying with “&”, but no use. Can you please assist the exact problem with this.
You need to use & as the entity for &:
You can try this example live at http://www.zorba-xquery.com/html/demo#H8dHNTZwa2AnbIWhKEfMQ9HKT84=