[ 
http://issues.apache.org/jira/browse/AXIS-2277?page=comments#action_12356382 ] 

Paul O'Keeffe commented on AXIS-2277:
-------------------------------------

I meant "violate" the Principle of Least Surprise rather than "validate"...

> XMLBeans integration (XMLBeanDeserializer) strips white space from elements
> ---------------------------------------------------------------------------
>
>          Key: AXIS-2277
>          URL: http://issues.apache.org/jira/browse/AXIS-2277
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: 1.3
>     Reporter: Paul O'Keeffe
>     Priority: Minor

>
> The code in XMLBeanDeserializer strips white space from the text within 
> elements. White space is significant within elements and should be retained.
> Printing out the MessageElement (DOM Node) retrieved from the current context 
> passed in to this code shows that the white space is still there in the 
> element at this point. The call to XmlObject.Factory.parse() to convert the 
> Node into an XMLBeans XMLObject removes the white space from elements 
> contained within the Node.
> Using a String version of the Node in the call to parse():
>     XmlObject xObj = XmlObject.Factory.parse(me.toString(), opts);
> works fine, but costs the time to reparse the input. Perhaps XMLBeans 
> provides a means of converting a DOM Node to an XmlObject which retains the 
> white space, but we haven't yet found a better alternative to this workaround.
> This may be a bug in XMLBeans itself. Given that the XmlOptions passed to 
> parse() make no mention of stripping white space, it seems to validate the 
> Principle of Least Surprise for it to be doing such things.

-- 
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

Reply via email to