Hi, how can parse an HTML String.
I need parse next Line :
'FIELDNAMEBSCS
status/NAMETYPEstring/TYPEVALUEnone/VALUE/FIELDFIELDNAMETopCre_life/NAMETYPEinteger/TYPEVALUE0/VALUE/FIELD'
And this is the program:
==
#!/usr/bin/env python
from sgmllib
On 6/17/2010 11:09 AM, Mauricio Martinez Garcia wrote:
Hi, how can parse an HTML String.
I need parse next Line :
'FIELDNAMEBSCS
status/NAMETYPEstring/TYPEVALUEnone/VALUE/FIELDFIELDNAMETopCre_life/NAMETYPEinteger/TYPEVALUE0/VALUE/FIELD'
That's not HTML. It's XML. You CAN parse this with
We have had great success with PyQuery for getting API access to XML data:
http://pypi.python.org/pypi/pyquery
--
Randy Syring
Intelicom
502-644-4776
Whether, then, you eat or drink or
whatever you do, do all to the glory
of God. 1 Cor 10:31
Tim Roberts