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 "Scott Cantor (JIRA)" <xe...@xml.apache.org> on 2017/07/07 19:12:00 UTC

[jira] [Commented] (XERCESC-1934) SAX2 reports the xmlns attribute without a namespace

    [ https://issues.apache.org/jira/browse/XERCESC-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16078540#comment-16078540 ] 

Scott Cantor commented on XERCESC-1934:
---------------------------------------

I can see that behavior is embedded in the XMLScanner classes. The AbstractDOMParser overrides the namespace it reports when it turns the XMLAttr into a DOM AttrImpl. The SAX2 class seems to directly reflect the underlying XMLAttr objects from the scanner, which makes this either a riskier low level fix to the scanners, or a change with potential efficiency implications on the SAX2 code.

> SAX2 reports the xmlns attribute without a namespace
> ----------------------------------------------------
>
>                 Key: XERCESC-1934
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1934
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: SAX/SAX2
>    Affects Versions: 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.1.3, 3.1.4
>            Reporter: Boris Kolpackov
>             Fix For: 4.0.0
>
>
> When you have something like xmlns:foo="foo", SAX2 reports the 'xmlns:foo' attribute as belonging to the XML namespace. However, if the namespace is declared as xmlns="foo", the 'xmlns' namespace is reported as being unqualified. Other parsers seems to be doing it in a more consistent manner.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org