yeah, I solved it with a restriction
-----Original Message----- From: Soumya [mailto:soumya_...@yahoo.co.in] Sent: Thu 5/20/2010 5:20 AM To: user@xmlbeans.apache.org Subject: Re: binding int with leading spaces Hello Jason, Did it solve your problem? otherwise u can deifine it as string and strip off whitespace in Java.. but then you need to cast again and its a length process... ________________________________ From: Jason Berk <jb...@purdueefcu.com> To: user@xmlbeans.apache.org Sent: Tue, 11 May, 2010 2:43:08 PM Subject: RE: binding int with leading spaces 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 ***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.***
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@xmlbeans.apache.org For additional commands, e-mail: user-h...@xmlbeans.apache.org