[jdom-interest] Wierd SAX Error . . .

Kevin L. Cobb kevin.cobb at emergint.com
Wed Jun 22 12:49:41 PDT 2005

I have a couple of pretty large XSLT files that error at the SAX parser
with the following error:
org.xml.sax.SAXParseException: XML document structures must start and
end within the same entity.
If I weed out all of the comments in one of them, the error goes away.
This leads me to believe that it is a buffer size issue somewhere. I've
a code snippet below. Anyone else come across this problem?
      //Code Snippet 
      InputStream xsltIn = new
      try {
         TransformerFactory tf = TransformerFactory.newInstance();
         tf.setURIResolver(new BasicURIResolver());
         Templates template = tf.newTemplates((new
StreamSource(xsltIn)));        //This is where the error is thrown
         Transformer trans = template.newTransformer();

         more code ... 

Kevin L Cobb, MT(ASCP), SCJP2
Senior Software Engineer
Emergint, Inc.
2724 River Green Circle
Louisville, KY 40206
Kevin.Cobb at emergint.com <mailto:Kevin.Cobb at emergint.com> 
502.896.6210 ext 255
502.896.6170 fax


The preceding e-mail message and attachments, if any, contains
information that is confidential and qualifies as such under the
Definition of Confidential Information in the Non-Disclosure Agreement,
and may constitute non-public information and trade secrets. It is
intended to be conveyed only to the designated recipient(s). If you are
not an intended recipient of this message, please notify the sender at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050622/a2df9fdf/attachment.htm

More information about the jdom-interest mailing list