axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] Commented: (AXIS2-4970) SOAPElement.addTextNode allows entering invalid XML character
Date Thu, 03 Mar 2011 22:59:40 GMT


Andreas Veithen commented on AXIS2-4970:

That depends on the underlying StAX implementation. I think Woodstox (which is the StAX implementation
recommended by Axis2) will do the check and throw an exception.

> SOAPElement.addTextNode allows entering invalid XML character
> -------------------------------------------------------------
>                 Key: AXIS2-4970
>                 URL:
>             Project: Axis2
>          Issue Type: Wish
>            Reporter: Soichi Hayashi
>            Assignee: Andreas Veithen
> I am not sure if this issue is already reported or not, but since I couldn't find it
anywhere.. let me open a new ticket..
> There are certain characters that are invalid in XML.. for example, following is an invalid
> <xml>
> &#24;test
> </xml>
> When I pass an unicode string containing char(24) (which is a valid Unicode char by the
way) to SOAPElement.addTextNode(), it doesn't complain nor validate such string. The SOAP
envelop will be constructed and passed to the destination SOAP server without any issue. However,
when the server tries to parse the SOAP envelop, it throws up (such as Perl's SOAP server
which uses XML::Parser to parse it). 
> Now, whose fault is this? I am not sure... but, for one thing, SOAPElement.addTextNode,
or  should be smart enough to check for characters that are invalid XML and throws exception
if such string is passed since it knows that the string will be eventually formatted in XML.

> Thanks,
> Soichi Hayashi

This message is automatically generated by JIRA.
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message