> See if the nsTab property of the xmlParserCtxt [1] is what you're after.
I adapted the example http://www.xmlsoft.org/examples/parse2.c and
tried to get the namespaces, but the nsTab and nsNr members of the
parser context is zero, no matter what xml file i put into the
example.
Any other sugges
Thank you for the fast answer.
I am reading the xml file using xmlReadFile. How do I get access to
the parser context?
Or must I read the file using xmlCtxtReadFile instead?
Best,
Martin
2016-07-07 23:29 GMT+02:00 Piotr Sipika :
>
> 07.07.2016 5:12 PM "Martin Siggel" napisał(a):
>>
> ...
>> Is
07.07.2016 5:12 PM "Martin Siggel" napisał(a):
>
...
> Is there any function in libxml, to retrieve a list of all namespace
> and prefixes used in the xml file?
Hey Martin,
See if the nsTab property of the xmlParserCtxt [1] is what you're after.
[1]: http://xmlsoft.org/html/libxml-tree.html#xml
Dear Daniel and all other XML list readers,
I am a relatively new user to libxml. I am writing on a simplified
interface for libxml.
In this interface, I would like to register all prefixes / namespaces
for the xpath interface using xmlXPathRegisterNs, that appear in an
xml file.
Is there any fu