public XPathNodeIterator distinct(XPathNodeIterator nodeset)
{
Hashtable nodelist = new Hashtable();
while (nodeset.MoveNext())
{
if (!nodelist.Contains(nodeset.Current.Value))
{
nodelist.Add(nodeset.Current.Value, nodeset.Current);
}
}
return new MyArrayIterator(new ArrayList(nodelist.Values));
}
}