Free since 2005 · No login required
AT

Academic Tutorials

Learn at your own pace

site-mobile-top-banner · 320x50

Top 10 tips to using Xpointer

Added 26 Jul 2008

1.Beware of whitespace when counting nodes.

2.Keep an open mind about predicates: nested, "compound," and so on.
3.The string-value of a node is just a special case of the string-value of a node-set.
4.Remember the difference between
value1 != value2 and not(value1 = value2)
5.
Find and use a good tool for testing your XPath expressions.
6.Explore EXSLT.
7.Fail-safe your XPointers.
8.Remember to keep namespaces straight (in both XPath and XPointer applications).
9.Don't forget processor efficiency in XPath and XPointer.
10.Keep an eye out for spec changes.