[ http://issues.apache.org/jira/browse/WSCOMMONS-60?page=all ]

Eran Chinthaka resolved WSCOMMONS-60.
-------------------------------------

    Resolution: Fixed

According to the last comment, it seems this is not a bug in Axiom but with the 
underlying StAX implementation. Resolving the issue in Axiom. 

> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to