September 9, 2003

Sweet piece of code

//Whoohaa! XPathExpression expr = nav.Compile("set:distinct(//author)"); expr.SetContext(new ExsltContext(doc.NameTable)); XPathNodeIterator authors = nav.Select(expr); while (authors.MoveNext()) Console.WriteLine(authors.Current.Value); EXSLT's set:distinct in XPath-only selection. Sweet.Coming soon, watch announcements! ...