CDATA and lxml
Silfheed
silfheed at gmail.com
Fri Apr 11 03:36:11 EDT 2008
Heyas
So first off I know that CDATA is generally hated and just shouldn't
be done, but I'm simply required to parse it and spit it back out.
Parsing is pretty easy with lxml, but it's the spitting back out
that's giving me issues. The fact that lxml strips all the CDATA
stuff off isnt really a big issue either, so long as I can create
CDATA blocks later with <>&'s showing up instead of <>& .
I've scoured through the lxml docs, but probably not hard enough, so
anyone know the page I'm looking for or have a quick how to?
Thanks!
More information about the Python-list
mailing list