Showing posts with label xpath. Show all posts
Showing posts with label xpath. Show all posts

Friday, June 18, 2010

Calculate XML Element Depth

In XPath (from the excellent D.Pawson site):
In LINQ:
  • int depth = element.Ancestors().Count();

Sunday, November 01, 2009

XSLT, XPath Knowledge Base

XPath explained and easy-to-use grid of descriptions...
Very useful XSLT scripts (including url encode/decode templates)...
A list of XSL elements and descriptions...
.NET 3.5 page on navigating XML in XPath...
Using XPath and LINQ...