This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Validator ignore integers with spaces Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Validator ignore integers with spaces" Watch "Validator ignore integers with spaces" New topic
Author

Validator ignore integers with spaces

Leonardo Gangemi
Greenhorn

Joined: Jun 19, 2012
Posts: 1
// XSD:


// XML (there is an extra space after number 7)


// Java (http://xsdvalidation.utilities-online.info/)



The code above returns "The XML is Well Formed and VALID", but the problem is the I get an
java.lang.NumberFormatException: For input string: "7 "
when I try to readObject, like this:



How can I deal with this?

Tks in advance.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Validator ignore integers with spaces
 
Similar Threads
Axis 1.4 throwing org.xml.sax.SAXException: Invalid element
Annotation for regular expression.
in Schema Dynamic value for maxLength - help
Get specific error message in xml validation with xsd
how to validate soap with xsd