Search the web
Sign In
New User? Sign Up
searchmonkey-developers · SearchMonkey - Developer Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Select the text of an option element   Message List  
Reply | Forward Message #331 of 463 |
I'm trying to get the text inside an option element as part of an
XPath (example URL is http://googleblog.blogspot.com/). In XPather
both of these give the text I want (currently 'September 2008 (51)'):

//div[@id='BlogArchive1_ArchiveList']/select/option[2]
//div[@id='BlogArchive1_ArchiveList']/select/option[2]/text()

But in the "Define your page extraction rules" part of the Custom Data
Service developer tool for either one I get the message "WARNING:
Element meta with property = dc:title has no content."

I've checked the input using the link on the page, but it looks the
same as the code I'm seeing with XPather.

Have I done something dumb wrong or is this a bug? If I've done
something dumb, what is the correct way to get at the text of an
option element?

Rob




Sat Sep 27, 2008 12:05 pm

rob_crowther_uk
Offline Offline
Send Email Send Email

Forward
Message #331 of 463 |
Expand Messages Author Sort by Date

I'm trying to get the text inside an option element as part of an XPath (example URL is http://googleblog.blogspot.com/). In XPather both of these give the...
Robert Crowther
rob_crowther_uk
Offline Send Email
Sep 27, 2008
12:05 pm

... What you have looks correct. I tried it and got the same error. I think the problem is that Google's blog HTML is ridiculously messed up. I mean, they are...
marcov@...
marcov1120
Offline Send Email
Sep 27, 2008
6:45 pm

Try deleting the number and brackets/parentheses and adding an "a" to the end of the xpaths: //div[@id='BlogArchive1_ArchiveList']/select/option/a ...
Chris Lindsey
post.chris
Online Now Send Email
Sep 28, 2008
8:17 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help