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 "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2006/07/15 00:08:14 UTC
[jira] Commented: (WSCOMMONS-60) Improper serialization of DTD
nodes
[ http://issues.apache.org/jira/browse/WSCOMMONS-60?page=comments#action_12421235 ]
Davanum Srinivas commented on WSCOMMONS-60:
-------------------------------------------
Small testcase please?
thanks,
dims
> Improper serialization of DTD nodes
> -----------------------------------
>
> Key: WSCOMMONS-60
> URL: http://issues.apache.org/jira/browse/WSCOMMONS-60
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: All
> Reporter: James M Snell
>
> Use StAXOMBuilder to parse the Atom feed http://www.xn--8ws00zhy3a.com/feed, which includes the DTD :
> <!DOCTYPE feed [
> <!ENTITY xhtml "http://www.w3.org/1999/xhtml">
> <!ENTITY id "tag:xn--8ws00zhy3a.com,">
> ]>
> Attempt to reserialize the feed and the DTD comes out as:
> <!ENTITY xhtml "http://www.w3.org/1999/xhtml">
> <!ENTITY id "tag:xn--8ws00zhy3a.com,">
> Which is invalid.
> Within the Builder, the createDTD method calls parser.getText() to get the content of the DTD. However, parser.getText returns the internal value. So this is a garbage in / garbage out scenario. Axiom is doing the right thing with what it has been given, unfortunately, what it has been given is wrong.
> Is this an Axiom bug or a StAX impl bug?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org