This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes org.xml.sax.SAXParseException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "org.xml.sax.SAXParseException" Watch "org.xml.sax.SAXParseException" New topic


Jason Menard

Joined: Nov 09, 2000
Posts: 6450
I'm trying to get the example at working. The basic idea is to take an xml document and then transform it into another xml document using a stylesheet. I am then trying to display the new document. I keep receiving the following errors at runtime:

The line numbers in the errors won't map to the code below, but line #83 is the line that reads: resultDoc =;
Here are the relevant portions of my code:

Here is car.xml

and car.xsl

I am XML clueless, so any help would be greatly appreciated.

[This message has been edited by Jason Menard (edited June 26, 2001).]
Jason Menard

Joined: Nov 09, 2000
Posts: 6450
Guess I'll answer my own question.
There was something wrong with the XML and/or XSL files. It was just a test so I grabbed some sample files from elsewhere.
The other problem with the code was the Piped Streams. These can cause a thread deadlock if used in the same thread. The answer (without resorting to multithreading) was to use ByteArray Streams.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: org.xml.sax.SAXParseException
jQuery in Action, 3rd edition