Re: [xml] how to get current line number of XML file

On Tue, Aug 19, 2003 at 01:55:19PM +0400, pinhead linet ru wrote:

Need help. How to get current line number of currently proccessing node ?

  if you have the parser context use getLineNumber(ctxt);
otherwise if you have the node and have called xmlLineNumbersDefault(1);
before parsing, use xmlGetLineNo(node);


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]