OMStAXWrapper#hasText should return true for CDATA sections
-----------------------------------------------------------
Key: WSCOMMONS-338
URL: https://issues.apache.org/jira/browse/WSCOMMONS-338
Project: WS-Commons
Issue Type: Bug
Components: AXIOM
Reporter: Andreas Veithen
For CDATA sections, the hasText method in OMStAXWrapper returns false, causing
getTextCharacters to return null. Both methods should behave in the same way
for CDATA and CHARACTER events.
The hasText method is part of the implementation of the XMLStreamReader
interface and must therefore conform to the StAX specifications. Sun's JWSDP
indeed doesn't mention CDATA in the Javadoc of this method (see
http://java.sun.com/webservices/docs/2.0/api/javax/xml/stream/XMLStreamReader.html).
I believe that this is a mistake. Anyway, getTextCharacters should return a
non null value for CDATA events.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.