Jed Parsons wrote: > I'm having trouble locating my document locator. > > For me, the following asks, "Dude, where's my Locator?" > > /snip/ > > 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> startDocument characters: 3 , 573 : Heading 1 ... what _______________________________________________ XML-SIG maillist - XML-SIG@python.org http://mail.python.org/mailman/listinfo/xml-sig