[xml] xmlHashScan and *data argument


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?


Attachment: pgpyIWSJyk0ot.pgp
Description: signature

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