You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Andy Clark <an...@apache.org> on 2002/07/09 21:06:00 UTC

Re: Source gets truncated

Calen Martin D. Legaspi wrote:
>    I practically copied this method from the book, but I'm not getting 
> the right outcome for XMLs greater than around 0.4MB.  The method writes 
> out to file "dest".  However, the InputStream payload seems to be 
> getting truncated, or only the first half is being read, so the parser 

Any chance you're not flushing/closing the stream properly?

-- 
Andy Clark * andyc@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Source gets truncated

Posted by "Calen Martin D. Legaspi" <ca...@yahoo.com>.
  Hi, Andy!  Thanks for replying.  I tried closing the InputStream but my
source still gets truncated.  By the way, I tried the same code with a file
instead of an InputStream as my source, but the same error occured.  I also
tried using Saxon from the command line, using a file as my source.  The
Source gets truncated at apparently the same point.

  If anybody here would like copy of my xml document and xslt document, in
order to try in on their machine, please let me know, I'll be glad to send
it to you.  Thank you all kindly.

----- Original Message -----
From: "Andy Clark" <an...@apache.org>
To: <xe...@xml.apache.org>
Sent: Wednesday, July 10, 2002 3:06 AM
Subject: Re: Source gets truncated


> Calen Martin D. Legaspi wrote:
> >    I practically copied this method from the book, but I'm not getting
> > the right outcome for XMLs greater than around 0.4MB.  The method writes
> > out to file "dest".  However, the InputStream payload seems to be
> > getting truncated, or only the first half is being read, so the parser
>
> Any chance you're not flushing/closing the stream properly?
>
> --
> Andy Clark * andyc@apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org