dizzzz / jing-trang

Automatically exported from code.google.com/p/jing-trang
Other
0 stars 0 forks source link

How to restrict Data type to String or Int in XSD for numeric value in XML #164

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Give any Numeric value starting with 0 in XML tag
2. then run Trang.jar to ganerate the xsd
3. The data type generates as xs:integer
4. When this XSD is used in JAXB , it converts this Integer to BigInteger 
Object and hence starting 0 is removed. For ex: 024 changes to 24

What is the expected output? What do you see instead?
it should change to xs:int

What version of the product are you using? On what operating system?
Windows OS 

Please provide any additional information below.

Original issue reported on code.google.com by gunjgu...@gmail.com on 28 Nov 2012 at 1:45