Re: [xml] Using xmlParserNodeInfo

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:


int record_info       = 1;
xmlSetFeature(itsParserContext, "gather line info", &record_info);

Yet when I try to get the info:

const xmlParserNodeInfo* info = xmlParserFindNodeInfo(itsParserContext, 

where child is a valid xmlNodePtr, info is always NULL.

  don't use NodeInfo, just do
and use
   long xmlGetLineNo(xmlNodePtr node);
to read it directly from the 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]