Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XPath: Filtering out the text string in the child node

1 view
Skip to first unread message

Joo Hang Cha

unread,
Jun 29, 2001, 1:27:30 PM6/29/01
to
Considering the following:

<a>Hello, my name is <name>Bob</name></a>

Is it possible to extract ONLY "Hello, my name is"?

I looked through XPath functions, filters, etc but couldn't come up with a
solution.

Thanks in advance for any assistance.


Dimitre Novatchev

unread,
Jun 29, 2001, 1:52:15 PM6/29/01
to
/a/text()[1]

"Joo Hang Cha" <joo...@msn.com> wrote in message
news:OGL4RCMABHA.1832@tkmsftngp02...

Joo Hang Cha

unread,
Jun 29, 2001, 2:02:11 PM6/29/01
to
Worked like a charm. Thanks a million. :)

I was playing around with text(), but never thought about adding [1] there.
;)

"Dimitre Novatchev" <dimi...@crosswinds.net> wrote in message
news:OvwYEMMABHA.1392@tkmsftngp07...

0 new messages