Once in a while we all come across tasks where we dont
have enough time to be thoroughly trained before
attempting something.
When something like that happens I go to the management and
tell them something along the lines of 'You do realize this
is just asking for trouble? You've been warned.' This often
works. YMMV.
To be fair to me
, I did go thru the material in MSDN
on XPath. Most of it is given in the context of XSLT.
That partly obstructed my learning. Inspite of that, I
didnt find any reference to selecting all text nodes.
If that is the case, the materials in question are of
rather poor quality; however, I find that a bit hard to
believe. Whatever you say about Microsoft, their references
are usually up to snuff IME. It's more likely you weren't
looking at them the right way.
After you pointed out, I did check the w3schools tutorial
where I found a similar point documented, thanks to you
again.
W3schools has a somewhat mixed reputation. Some people
swear by them, but they've been caught red-handed at
posting almost blatantly ignorant advice in some of their
tutorials.
Joseph Kesselman usually refers people to IBM's collection
of materials on XML, which is what I'm gonna do:
http://www.ibm.com/xml/
It's even easier for me, because unlike Joseph I'm not
affiliated with IBM in any way (apart from having used an
IBM G96 19" display several years ago, which was an almost
orgastic experience).
Note that the place is a treasure trove of useful
information, which means it might seem a bit overwhelming.
Btw, do you seriously think XPath is complex enough that
we should master it before using it?
I think you should at least attempt getting hang of
*anything* you intend to use before trying to actually use
it. This applies to anything up to and including
chopsticks. Anyway, yes, I think XPath1 is complex enough
if we start messing around with predicates, contexts and
node identities, and I don't even mention XPath2. Note that
while you seem to think XPath is easy you failed to solve a
simple problem without asking for advice.