Re: [xml] newTextReader's GetParserLineNumber is too keen??

2006-07-12 Thread Bruce A. Johnson
Nigel Tao wrote: > Is this a bug or am I doing something wrong? And if this is a bug, > can I get some hints as to what parts of the code to look to patch? > I would say it's a case of the function description needing a little more elaboration, or a caveat: From http://xmlsoft.org/html/libx

Re: [xml] newTextReader's GetParserLineNumber is too keen??

2006-07-12 Thread William M. Brack
Nigel Tao wrote: > I'm following the example at http://xmlsoft.org/xmlreader.html, and > have modified only processNode() to print reader.GetParserLineNumber() > so that I have > > --- > --- > > The problem is that every node is reported to be on lin

[xml] newTextReader's GetParserLineNumber is too keen??

2006-07-12 Thread Nigel Tao
I'm following the example at http://xmlsoft.org/xmlreader.html, and have modified only processNode() to print reader.GetParserLineNumber() so that I have --- import libxml2 def processNode(reader): print reader.GetParserLineNumber(), reader.Name() def streamFile(filen