[python-win32] Parse HTML String only not file

2010-06-17 Thread Mauricio Martinez Garcia
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

Re: [python-win32] Parse HTML String only not file

2010-06-17 Thread Tim Roberts
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

Re: [python-win32] Parse HTML String only not file

2010-06-17 Thread Randy Syring
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