xpath min() function

wxdqz

New Member
I need to found Min value in an xml document.

I found a script (vb) able to extract a whole nodelist

set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load("books.xml")

set nodes=xmlDoc.selectNodes("/bookstore/book/price/text()")

for each x in nodes
document.write("<xmp>")
document.write(x.xml)
document.write("</xmp>")
next

I know also that the function to found a min value in a xml collection is min().
But i didnt found any example that describes the right sintax.

I hope you can help me.
 
Back
Top