Re: [xml] local name / localname /prefix
- From: Fabrice Desré - France Telecom R&D/DTL/TAL <fabrice desre francetelecom com>
- To: Ulrich Staudinger <ustaudinger gmx-gmbh de>
- Cc: xml gnome org
- Subject: Re: [xml] local name / localname /prefix
- Date: Wed, 23 Jun 2004 13:25:35 +0200
Ulrich Staudinger wrote:
Hello,
i use libxml2-2.5.4 and i have some xml tags:
<env:body xmlns:m="somens">
<m:functioncall/>
</env:body>
is there a way to access the local name of an element? in xmlNode* i
can't find any pointer to get hold of the "m".
m is not the localname, it is the namespace prefix. You can access it
through node->ns->prefix. But note that only the URI is really
meaningful (i.e node->ns->href), since the prefix is only syntaxic sugar.
HTH,
Fabrice
--
Fabrice Desré
France Télécom R&D/DTL/TAL
Tél: +(33) (0)2 96 05 31 43
Fax: +(33) (0)2 96 05 39 45
http://www.francetelecom.com/rd
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]