Re: [xml] Current line number and position with xmlTextReader API

On Fri, Oct 03, 2003 at 02:41:07PM +0100, GARNIER Pierre wrote:

I'm using xmlTextReader API.
I would like to know the position of the current node in the document at any
moment of the read.

I think that I can get the line number by calling :
  nbline = xmlGetLineNo(xmlTextReaderCurrentNode(reader));

  yes, that should work.

How can I get the position in the line? Is it possible?

  Hum, no, that's not stored in the tree :-\


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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