Re: [xml] Help with xmlGetLineNo



On Fri, Nov 16, 2001 at 10:10:46AM -0500, Wei Qin wrote:

Hi,

      I try to use the xmlGetLineNo() in release 2-2.4.10. It always
returns 0. I don't know how to make it produce correct number. Please
help. Thanks in advance.

  It's not activated by default, use
    xmlLineNumbersDefault(1);

to set this options (before parsing).

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]