xml input sanitizing method in standard lib?
gagsl-py2 at yahoo.com.ar
Mon Mar 9 16:52:46 CET 2009
En Mon, 09 Mar 2009 13:32:48 -0200, Petr Muller <afri at afri.cz> escribió:
> Is there some method provided in python standard library to sanitize
> strings used as input to xml documents? (=remove form-feeds and whatever
> else). I've searched docs and google, found only 4Suite project. I
> cannot rely on something not in standard lib, so I'm wondering if I've
> just overlooked something in the docs to this (imo) important task...
What do you mean by "sanitize strings used as input to xml documents"?
Do you have a string that you're going to parse as an XML document? Either
it is valid XML, or not. I would not "sanitize" it, you risk changing the
More information about the Python-list