Is there a way to select the sum of all nodes within 1 XML nocument
for $c in doc("http://www.dbis.informatik.uni-goettingen.de/Mondial/mondial.xml")
return count($c//country)
That is what i currently have but this only returns the count of all top level nodes. I would like to count all existing nodes.(recursively?)
countryelements in the XML? How aboutcount(doc("....")//country)? - har07count(//node())- unless you want namespaces and attributes as well. - Michael Kay