Simple HTML to XML parser?

jsantaniello at my-deja.com jsantaniello at my-deja.com
Wed Nov 15 19:21:58 EST 2000


Hello Everyone,

Thanks for the tips. In the xml package in 1.5.2 there is a nice demo
html2html that seems to illustrate what I need. It's not included in
2.0's xml package, but I think that's the way I'm going to go.

Joe

In article <8uq132$rek$1 at nnrp1.deja.com>,
  jsantaniello at my-deja.com wrote:
> Hi Everyone,
>
> Does anyone have or know of a simple HTML to XML parser? The sax
package
> is too much for me to handle. What I'm looking for is the ability to
> grab some html with urllib for example and then access an object like:
>
> page = urlopen(url)
> the_value = page.body.form[0].hidden_element_name.value
>
> Or something similar. What I'm doing now is just grabbing the page as
a
> string and searching for tokens and then doing some slicing. But this
is
> all so hard coded, and subject to the vagaries of web-designers that I
> don't trust it.
>
> Anyone have any suggestions?
>
> Thanks,
>
> Joe
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list