File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Ignoring whitespace in character data Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Ignoring whitespace in character data" Watch "Ignoring whitespace in character data" New topic
Author

Ignoring whitespace in character data

John Ryan
Ranch Hand

Joined: Mar 14, 2001
Posts: 124
Hi all,

I was wondering if someone could tell me how to get Axis to ignore
whitespace when deserializing an XML message into Java types. I am receiving an XML string which includes whitespace as part of the contents of an element whose type is an integer. When this element is deserialized Axis throws a NumberFormatException because of the presence of the whitespace (exception is thrown by the Integer constructor). Has anyone got any ideas on ways I might get around this issue - other than searching through the string I receive for elements whose type is integer and stripping any space for element content
Cheers,
Tom
 
 
subject: Ignoring whitespace in character data
 
Threads others viewed
WSDL2JAVA Apache axis
New to Java. Can you help with whit this (XML) ?
java.io.IOException: Type {http://lang.java}Exception is referenced but not defined.
problem in vector
HashSet.addAll Arrays.asList split extra space
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture