This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes sax parser error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "sax parser error" Watch "sax parser error" New topic

sax parser error

Jay X Brown
Ranch Hand

Joined: Jan 26, 2001
Posts: 51
hi all,
sorry for the elementary level of my questions. i am trying out the sax parser and trying to handle the SAXParseException but, instead of getting the expected result, i'm getting this:
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at<init>(Compiled Code)
at<init>(Compiled Code)
at Code)
at<init>(Compiled Code)
at echo4.main(Compiled Code)
what am i doing wrong?
thanks for your help.
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
Please post your XML document here.

Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Jay X Brown
Ranch Hand

Joined: Jan 26, 2001
Posts: 51
here is the xml document:
<?xml version='1.0' encoding='us-ascii'?>
<!-- The first xml document -->
<name title="Ms.">
<address type="shipping">
<streetleveldetail> 123 Rajdil Lane, Chowpatty</streetleveldetail>
the problem was solved when i changed the line in the parsing application from:
out = new OutputStreamWriter (System.out, "USASCII");
out = new OutputStreamWriter (System.out, "UTF8");
it's working but i'm totally confused on this encoding bit.
what am i missing?
[This message has been edited by Jay Brown (edited February 07, 2001).]
I agree. Here's the link:
subject: sax parser error
It's not a secret anymore!