Re: setDocumentLocator in validating parser (xmlproc)

2005-03-19 Thread Cees Wesseling
"James Kew" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... Thanks James, a perfect patch that works perfect for me. On a side note, it seems the locator is not standarized. expat gives positions at the "<"-char of startElement while xmlproc (PyXml) gives it the ">"-char of start

setDocumentLocator in validating parser (xmlproc)

2005-03-18 Thread Cees Wesseling
Hi, it seems that xmlproc, the default Validating parser, in my setup does not call back to setDocumentLocator. Is there anyway to get a locator in my handler? Below you find an example and its output. Regards, Cees # base imports from xml.sax.handler import ContentHandler from xml.sax.handler i