[ 
https://issues.apache.org/jira/browse/TUSCANY-3402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jayesh Shah closed TUSCANY-3402.
--------------------------------

    Resolution: Not A Problem

Schema for the XML defines collapse whitespaces, causing the 
dataObject.getString("X12data") to return content after collapsing whitespaces 
(replacing multiple spaces with a single space)

                                <xsd:element name="X12data">
                                        <xsd:simpleType>
                                                <xsd:restriction 
base="xsd:string">
                                                        <xsd:minLength 
value="300"/>
                                                        <xsd:whiteSpace 
value="collapse"/>
                                                        <xsd:pattern 
value="ISA.*"/>
                                                </xsd:restriction>
                                        </xsd:simpleType>
                                </xsd:element>


> DataObject.getString(path) returns value after replacing the multiple spaces 
> with a single space 
> -------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-3402
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3402
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Implementation
>         Environment: Unix, java 5
>            Reporter: Jayesh Shah
>
> Tag value contains multiple spaces, but the api DataObject.getString(path) 
> returns the value after replacing multiple spaces with a single space.
> Eg. Considering following input
> <X12data>ISA*00*          *00*          *ZZ*084            *ZZ*080            
> *091202*1616*U*00401*000000820*0*T*^~<X12data>
> dataObject.get("X12data") must return ISA*00*          *00*          *ZZ*084  
>           *ZZ*080            *091202*1616*U*00401*000000820*0*T*^~
> but instead it returns ISA*00* *00* *ZZ*084 *ZZ*080 
> *091202*1616*U*00401*000000820*0*T*^~
> Notice the missing spaces in actual output

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to