Re: [xml] Using xmlParserNodeInfo
- From: Daniel Veillard <veillard redhat com>
- To: "Glenn W. Bach" <glenn cds caltech edu>
- Cc: xml gnome org
- Subject: Re: [xml] Using xmlParserNodeInfo
- Date: Thu, 13 Feb 2003 17:41:54 -0500
On Thu, Feb 13, 2003 at 11:28:20AM -0800, Glenn W. Bach wrote:
I am trying to obtain line information on my nodes using
xmlParserFindNodeInfo, but I can't seem to get it to record any. I have
done the following:
xmlLineNumbersDefault(1);
int record_info = 1;
xmlSetFeature(itsParserContext, "gather line info", &record_info);
Yet when I try to get the info:
const xmlParserNodeInfo* info = xmlParserFindNodeInfo(itsParserContext,
child);
where child is a valid xmlNodePtr, info is always NULL.
don't use NodeInfo, just do
xmlLineNumbersDefault(1);
and use
long xmlGetLineNo(xmlNodePtr node);
to read it directly from the 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]