File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validator ignore integers with spaces

 
Leonardo Gangemi
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
// 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://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic