I have a problem with xpath within an asp page.
I have this asp page that receives a string with xml layout.
To handle this xml string, I use XPath (within asp). A part of the code is like this:
response.write("<option value=0> </option>")
for each x in nodes
response.write("<option value=" & x.text & ">" & x.text & "</option>")
This part of code gathers all the zipcodes from the xml and displays them in a dropdown box.
Until this point, everything goes well.
But some of the zipcodes are displayed more than once (because they are more than once in the xmlfile).
I was wondering if I can use a sort of distinct to display them only once? I can't get it to work. I know there is something like fn:distinct-values(), but this doesn't work in asp right?
Does anybody know a possibility?
If you want some more information, don't hesitate to ask.
Thanks in advance.