[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
'RE: [xml] xmlHash problem"'
- From: Uwe Fechner <uwe fechner 4commerce de>
- To: Libxml2 <xml gnome org>
- Subject: 'RE: [xml] xmlHash problem"'
- Date: Tue, 13 Aug 2002 12:56:10 +0200
> > I need this function, to get access the named-node-map of
> entities and the
> > one
> > of the notations by index, and not by name.
>
> I don't understand the function you need, please be explicit by giving
> a written description of that C entry point and what you expect from it,
> I can hardly reverse analyze 50 lines of Pascal code to try to understand
> what it was supposed to do.
Hello Daniel,
I try to explain it in other words:
Usually we access a hash, using a name to find the data (e.g. the name of an
attribute, an entity or a notation.
That is possible with the libxml2 api.
But sometimes I need a way to access the content of a hash by a numerical
index.
So that I can loop (from i:=0 to hash.length do begin ... end) through all
the
entries of a hash.
There is an api function, to get the length of a hash. But there isn't any,
to
get an hash entry by index.
That's what my pascal function is doing: Walking from hash enty to hash
entry and
returning the i-th entry.
Do you see a way of doing that, using the current api functions only?
Regards:
Uwe
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]