Re: [xml] xmlHashScan and *data argument

On Sun, Oct 19, 2003 at 09:07:31PM +0200, Melvyn Sopacua wrote:
Content-Description: signed data

I'm trying to build a tree-like output from a given DTD. For that I need to 
know the 'indent level' I'm printing at, so I thought I'd pass an int pointer 
as data. That gives all kinds of weird results and it looks like the passed 
element is never initialized. If I set the level within the callback and set 
data to NULL, everything works correctly.

The code in valid.c uses an xmlBuffer to pass to the callback and looking into 
hash.c there are a number or argument mangles, that don't make sense to me.

What is assumed about this 'data' argument and can it be only an xmlBuffer?

  I have no idea what you're trying to do, nor what you problem is.
xmlHashScan is used to traverse a hash table. The xmlHashScanner
argment is called for each element in the table with the content
in the hash, the data you passed and the name of the data in the hash
as the third argument. There is nothing assumed about data.


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]