[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:
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?
InputStream xsltIn = new
TransformerFactory tf = TransformerFactory.newInstance();
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
2724 River Green Circle
Louisville, KY 40206
Kevin.Cobb at emergint.com <mailto:Kevin.Cobb at emergint.com>
502.896.6210 ext 255
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...
More information about the jdom-interest