• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

org.xml.sax.SAXParseException

 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm trying to get the example at http://www-106.ibm.com/developerworks/java/library/x-tipjdom.html 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 = saxBuilder.build(resultIn);
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.
Thanks,
Jason

[This message has been edited by Jason Menard (edited June 26, 2001).]
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic