[jdom-interest] Wierd SAX Error . . .

Kevin L. Cobb kevin.cobb at emergint.com
Wed Jun 22 13:20:54 PDT 2005


I knew I should have waited to send this out. It appears that my
retreiving of the sourceXSLT further up in the code is at fault, i.e.
I'm not getting the entire file. 
 
Sorry for the bother. 
 

________________________________

From: jdom-interest-bounces at jdom.org
[mailto:jdom-interest-bounces at jdom.org] On Behalf Of Kevin L. Cobb
Sent: Wednesday, June 22, 2005 3:50 PM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Wierd SAX Error . . . 


I have a couple of pretty large XSLT files that error at the SAX parser
with the following error:
    javax.xml.transform.TransformerException:
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
included 
a code snippet below. Anyone else come across this problem?
 
 
 
      //Code Snippet 
      InputStream xsltIn = new
ByteArrayInputStream(sourceXSLT.getBytes());    
 
      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
502.896.6210. 

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


More information about the jdom-interest mailing list