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:
Hello

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

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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