Re: [xml] xmlHashScan and *data argument
- From: Daniel Veillard <veillard redhat com>
- To: Melvyn Sopacua <mdev idg nl>
- Cc: xml gnome org
- Subject: Re: [xml] xmlHashScan and *data argument
- Date: Sun, 19 Oct 2003 15:49:00 -0400
On Sun, Oct 19, 2003 at 09:07:31PM +0200, Melvyn Sopacua wrote:
Content-Description: signed data
Hi,
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
--
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]