You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Owen Roberts <or...@baltimore.com> on 2000/07/14 16:51:13 UTC

parsed attribute node xmlns:dsig namespaces on.

Hi all -

(first - thanks to Juergen Hermann [jhe@webde-ag.de] and
Joseph_Kesselman@lotus.com for previous help)

Im using the ibm version xml4csrc3_1_0 on NT4 (XML4C version 3.1.0
incorporates Xerces-C version 1.1.0 )

When parsing the XML below, namespaces on, no DTD, no validation


<?xml version='1.0' encoding='ISO-8859-1' ?>
<dsig:Signature xmlns:dsig = "http blah ....

DOM_Node for attribute xmlns:dsig ->
I get a DOM_Node::getLocalName() is dsig 
and DOM_Node::getPrefix() is xmlns

which is really the opposite of what is true. Usually, elements and
attributes in a namespace are prefix:localname, but this is the reserved
attribute xmlns, serving as a namespace declaration. Shouldn't the parser
recognise this and reverse the meanings of the parts of xmlns:dsig ??

or should the application check for attributes prefix xmlns and reverse
manually ...

OWen



--
Owen Roberts
Toolkits Architect
Baltimore Technologies, Dublin
oroberts@baltimore.com
(+3531) 647 7430