On Wed, 3 Sep 2008, bruce wrote: [...] > and get the number of total nodes... > by subtracting, i can get the number of nodes, without text.. is there an > easier way??!! [...] Yes -- don't use XPath :-) John