Hi All,
I am making InputStream from a XML file. Parsing it using JAXB. XML file is well fomed.
First time while parsing, JAXB throws an error as :
DefaultValidationEventHandler: [FATAL_ERROR]: Whitespace required before attributes
But after 3-4 retries... JAXB parses it succesfully. So where is the problem....???.
If something is wrong in XML file, it should not parse.... then how parsing successfuly after few retries...??
Will there be anything wrong while making InputStream...??? It's code is as :
input is my XML String.
String data = input.getBytes();
ByteArrayInputStream binaryobject = new java.io.ByteArrayInputStream(data);
Any Idea..?? Pl. Help.
Thanks in Advance.
Sandeep Oza