- From: Michael Kay <mhk@mhk.me.uk>
- Date: Wed, 24 May 2006 09:40:57 +0100
- To: <choconlangthang@yahoo.com>, <www-xpath-comments@w3.org>
Received on Wednesday, 24 May 2006 08:41:14 UTC
XPath has functions substring(), substring-before(), and starts-with(), which between them should meet your requirements. I don't know how you missed these. Michael Kay http://www.saxonica.com/ _____ From: www-xpath-comments-request@w3.org [mailto:www-xpath-comments-request@w3.org] On Behalf Of Le Mai Tung Sent: 23 May 2006 04:27 To: www-xpath-comments@w3.org Subject: xpath doesn't support substring ! Hello there, I got one comment I want to select the node whose value contains a substring. For eg: <Data> <ID>1</ID> <Name>Abramson, Norman</Name> </Data> I want to select the <Name> node containing "Abramson" , so I cannot use the = operator, but I found no "substring" command. I must query all nodes, check them all, kind of lengthy job ! Hope to get this feature someday, thanks for reading. life is not only 17 inches __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Received on Wednesday, 24 May 2006 08:41:14 UTC