[XML-SIG] Re: Locating my document locator
fredrik at pythonware.com
Wed Jan 26 15:31:51 CET 2005
Jed Parsons wrote:
> I'm having trouble locating my document locator.
> For me, the following asks, "Dude, where's my Locator?"
> That snippet based on http://www.xml.com/pub/a/2004/11/24/py-xml.html, which
> taunts me with the assertion that, "Every SAX driver I know of that comes with
> Python or on PyXML supports locators."
> I know there's a locator there somewhere, because when my xml is broken, the
> parser is quick to let me know where :)
I added print statements to your sample, and ran under Python 2.4:
setDocumentLocator: <xml.sax.expatreader.ExpatLocator instance at 0x00AC51C0>
characters: 3 , 573 : Heading 1
More information about the XML-SIG