[xml] ignore undefined entity references while parsing?



Hi,

I assume, this would break any XML standard, but still...

I like to parse XML with all entity references ignored,
i.e. defined or undefined entities neither substituted
nor removed. So far, with libxml2 2.6.31 and Python 2.4
it works only for the defined ones.

Is there a clean way to do this? Currently, I quote the
ampersands of my input and unquote later. This works
well, but feels hacky. Is there a better way?

Thanks in advance!
-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]