Search the web
Sign In
New User? Sign Up
waterlanguage · Water Language
? 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
Parsing html pages   Message List  
Reply | Forward Message #681 of 743 |
I see a lot of examples of how to convert Water's HTML objects into
strings, but I can't find any examples of how to convert a string of
HTML into hypertext objects.

I am downloading a web page and trying to parse it. I'm using the
content attribute of the <web/> object to get the contents of the site
as a string. It seems to me that it should be natural in Water to get
the entire webpage I am downloading as objects.

Here's how I download the page:

<set x=<web "http://citeseer.ist.psu.edu/Kobayashi00information.html"/> />

I'm getting the content like so:

x.content






Thu Nov 10, 2005 11:18 am

skramer072
Offline Offline
Send Email Send Email

Forward
Message #681 of 743 |
Expand Messages Author Sort by Date

I see a lot of examples of how to convert Water's HTML objects into strings, but I can't find any examples of how to convert a string of HTML into hypertext...
skramer072
Offline Send Email
Nov 10, 2005
1:07 pm

Here's some code using the example you gave: <!-- Set up web resource --> <set x=<web "http://citeseer.ist.psu.edu/Kobayashi00information.html"/> /> <!--...
Merrick Stemen
merrick_stemen
Offline Send Email
Nov 11, 2005
6:14 am
Advanced

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