Duh?

        <xs:element name="accountNumber">
                <xs:simpleType>
                        <xs:restriction base="xs:int">
                                <xs:whiteSpace value="collapse" />
                        </xs:restriction>
                </xs:simpleType>
        </xs:element>

-----Original Message-----
From: Jason Berk [mailto:jb...@purdueefcu.com] 
Sent: Tuesday, May 11, 2010 9:38 AM
To: user@xmlbeans.apache.org
Subject: binding int with leading spaces

This is more of a general XML question.

I have fields like this in my XML:

<account>        123456</account>
<account>     123456789</account>

The amount of leading white space is variable.  

How can I bind to that element as an INT?  Currently, I'm using TOKEN to
ignore the whitespace, but then I have to cast in code to INT.  Is there
a way to "combine" int and token?

Jason

***This is a transmission from Purdue Employees Federal Credit
Union (PEFCU) and is intended solely for its authorized
recipient(s), and may contain information that is confidential
and or legally privileged.  If you are not an addressee, or the
employee or agent responsible for delivering it to an addressee,
you are hereby notified that any use, dissemination,
distribution, publication or copying of the information 
contained
in this email is strictly prohibited. If you have received this
transmission in error, please notify us by telephoning (765)
497-3328 or returning the email. You are then instructed to
delete the information from your computer.  Thank you for your
cooperation.***



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: user-h...@xmlbeans.apache.org


***This is a transmission from Purdue Employees Federal Credit
Union (PEFCU) and is intended solely for its authorized
recipient(s), and may contain information that is confidential
and or legally privileged.  If you are not an addressee, or the
employee or agent responsible for delivering it to an addressee,
you are hereby notified that any use, dissemination,
distribution, publication or copying of the information 
contained
in this email is strictly prohibited. If you have received this
transmission in error, please notify us by telephoning (765)
497-3328 or returning the email. You are then instructed to
delete the information from your computer.  Thank you for your
cooperation.***


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: user-h...@xmlbeans.apache.org

Reply via email to