Parsing SGML document in Python program

Martin v. Loewis martin at v.loewis.de
Wed Oct 16 11:40:05 EDT 2002


Eric Brunel <eric.brunel at pragmadev.com> writes:

> I had once to do that and I couldn't find a parser directly usable in 
> Python. Maybe it has changed (just check the Vaults of Parnassus for it). 
> The solution I used at the time was to rely on an external parser that gave 
> easy to parse results. The one I used was nsgmls, part of James Clark's SP 
> project. You may find it @ http://www.jclark.com/sp/ ; just test it and 
> you'll see that its output is really easy to get back into Python.

When I need structure analysis, I use nsgmls as well: its output is
really easy to process.

Regards,
Martin




More information about the Python-list mailing list