You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "James M Snell (JIRA)" <ji...@apache.org> on 2007/11/15 18:45:43 UTC
[jira] Created: (WSCOMMONS-281) xmlns:xml declaration is
unnecessary and fails in some parsers
xmlns:xml declaration is unnecessary and fails in some parsers
--------------------------------------------------------------
Key: WSCOMMONS-281
URL: https://issues.apache.org/jira/browse/WSCOMMONS-281
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Environment: All
Reporter: James M Snell
When serializing an Axiom element that contains xml:lang or xml:base, the xmlns:xml declaration is serialized. The decl is unnecessary and causes problems with some parsers. This xml prefix decl needs to be suppressed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org
[jira] Resolved: (WSCOMMONS-281) xmlns:xml declaration is
unnecessary and fails in some parsers
Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSCOMMONS-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen resolved WSCOMMONS-281.
---------------------------------------
Resolution: Fixed
Assignee: Andreas Veithen
Implemented the solution suggested by Rich.
> xmlns:xml declaration is unnecessary and fails in some parsers
> --------------------------------------------------------------
>
> Key: WSCOMMONS-281
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-281
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: All
> Reporter: James M Snell
> Assignee: Andreas Veithen
>
> When serializing an Axiom element that contains xml:lang or xml:base, the xmlns:xml declaration is serialized. The decl is unnecessary and causes problems with some parsers. This xml prefix decl needs to be suppressed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (WSCOMMONS-281) xmlns:xml declaration is
unnecessary and fails in some parsers
Posted by "Rich Scheuerle (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WSCOMMONS-281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542889 ]
Rich Scheuerle commented on WSCOMMONS-281:
------------------------------------------
James,
WSCOMMONS-279 introduced a method, OMSerializerUtil.isAssociated(prefix, namespace...).
Perhaps this is the best place to squash the declaration. If the prefix is "xml", isAssociated should return "true" which should prevent the unnecessary xmlns:xml declaration.
> xmlns:xml declaration is unnecessary and fails in some parsers
> --------------------------------------------------------------
>
> Key: WSCOMMONS-281
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-281
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: All
> Reporter: James M Snell
>
> When serializing an Axiom element that contains xml:lang or xml:base, the xmlns:xml declaration is serialized. The decl is unnecessary and causes problems with some parsers. This xml prefix decl needs to be suppressed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org