-- 作者:jyxy
-- 发布时间:5/29/2007 1:04:00 AM
-- 如何寻找element,其内容包含某些字符?
what is the Xpath that will gather the following infomation? The description for each item in which the description contains the word “and”. <?xml version="1.0" encoding="iso-8859-1"?> <rss version='2.0'> <channel> <title>Yahoo! News: Science News</title> <copyright>Copyright (c) 2005 Yahoo! Inc. All rights reserved.</copyright> <link>http://news.yahoo.com/i/753</link> <description>Science News</description> <language>en-us</language> <lastBuildDate>Mon, 25 Jul 2005 21:50:59 GMT</lastBuildDate> <ttl>5</ttl> <image> <title>Yahoo! News</title> <width>142</width> <height>18</height> <link>http://news.yahoo.com/</link> <url>http://us.i1.yimg.com/us.yimg.com/i/us/nws/th/main_142b.gif</url> </image> <item> <title>NASA May Bend Rules to Launch Discovery (AP)</title> <link>http://us.rd.yahoo.com/dailynews/rss/science/*http://news.yahoo.com/news?tmpl=story&u=/ap/20050725/ap_on_sc/space_shuttle</link> <guid isPermaLink='false'>ap/20050725/space_shuttle</guid> <pubDate>Mon, 25 Jul 2005 21:50:59 GMT</pubDate> <description>AP - With the countdown entering its final hours and a fuel gauge problem still unexplained, NASA said it is prepared to bend its long-standing safety rules to launch the shuttle Tuesday on the first flight since Columbia's doomed mission 2 1/2 years ago.</description> </item> <item> <title>NASA Urged to Keep Microbes From Mars (AP)</title> <link>http://us.rd.yahoo.com/dailynews/rss/science/*http://news.yahoo.com/news?tmpl=story&u=/ap/20050725/ap_on_sc/microbes_to_mars</link> <guid isPermaLink='false'>ap/20050725/microbes_to_mars</guid> <pubDate>Mon, 25 Jul 2005 20:01:05 GMT</pubDate> <description>AP - While Earth germs may not kill attacking Martians as they did in "War of the Worlds," a new study is calling on NASA to prevent contamination of Mars with microbes from our planet.</description> </item> <item> ... ... ...
|