Springboard Pillow
Paddling in the murky bits of the byte stream
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):
select="count(ancestor::*)"
http://www.dpawson.co.uk/xsl/sect2/N2193.html
In LINQ:
int depth = element.Ancestors().Count();
Sunday, November 01, 2009
XSLT, XPath Knowledge Base
XPath explained and easy-to-use grid of descriptions...
http://www.developer.com/xml/article.php/10929_3383961_1/NET-and-XML-XPath-Queries.htm
Applying XSLT to XML in .NET...
http://bytes.com/topic/net/answers/178240-how-apply-xslt-xmldocument
Very useful XSLT scripts (including url encode/decode templates)...
http://skew.org/xml/
A list of XSL elements and descriptions...
http://saxon.sourceforge.net/saxon6.5.2/xsl-elements.html
Parameters and variables in XSLT...
http://www.xml.com/pub/a/2001/02/07/trxml9.html
Writing an XSD document...
http://mikehadlow.blogspot.com/2006/12/how-to-write-xsd.html
.NET 3.5 page on navigating XML in XPath...
http://msdn.microsoft.com/en-us/library/bb675178.aspx
Using XPath and LINQ...
http://www.ajaxtutorials.com/ajax-tutorials/using-ajax-linq-and-xml-in-c/
D. Pawson, the God of XML...
http://www.dpawson.co.uk/xsl/sect1/sect1.html
Copying all elements except one...
http://www.stylusstudio.com/xsllist/200101/post60690.html
Passing parameters to XSLT...
http://projects.ischool.washington.edu/tabrooks/545/ContentManagement/PassingParameters.htm
Copying text while converting escaped characters (3rd post down)...
http://www.velocityreviews.com/forums/t294084-replacing-amplt-with-lt-using-xslt.html
Add CData section easily...
http://www.bernzilla.com/2008/02/12/utilizing-cdata-section-elements-in-xsl/
Lower-case in .NET (because it doesn't support XPath 2.0)...
http://stackoverflow.com/questions/587864/xpath-and-c
Functions, including string manipulation...
http://www.w3schools.com/Xpath/xpath_functions.asp
Older Posts
Home
Subscribe to:
Posts (Atom)