ctory.parse(Unknown
>> > Source)
>> > at
>> >
>> com.itt.ems.seed.messages.util.converters.TestDDSConvertAction.testDDSConverter
>> > (TestDDSConvertAction.java:42)
>> > at
>
gt; TestDDSConvertAction.java:25)
> > Caused by: org.apache.xmlbeans.impl.piccolo.io.IllegalCharException:
> > Illegal
> > XML character: 0x0
> > at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(
> > Piccolo.java:1038)
> > at
> > org
olo.reportFatalError(
> Piccolo.java:1038)
> at
> org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:717)
> at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java
> :3435)
> ... 6 more
>
>
> When i try to read from file directly it works.
>
> Any ideas ?
> --
> The human knowledge belongs to the world.
>
>
--
View this message in context:
http://www.nabble.com/Parsing-from-input-stream-tf2952430.html#a13701164
Sent from the Xml Beans - User mailing list archive at Nabble.com.
Hi everyone
I have problem with parsing from memory input stream. This is my code:
File f = new File("c:\\msg.xml");
byte b[] = new byte[(int) (f.length() + 1)];
FileInputStream fin = new FileInputStream(f);
fin.read(b,0,b.length);
ByteArrayInputStream sid = new ByteArrayInputStream(b);
When i in
4 matches
Mail list logo