Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Attributes Not being picked up by SAX parser

843834Aug 31 2001 — edited Sep 10 2001
Hi,

I am having trouble getting my SAX parser to accurately determine the attributes attached to my XML tags.

My XML tag looks like:
<question type="multiplechoice">

The parser comes to this element and calls the startElement method. When I System.out the attributes.getLength() it returns 0. I can't figure out why the value stored in the 'type' attribute isn't in this Attributes object.

Any insight or suggestions you could provide would be most appreciated!!

Chris
latimec@nationwide.com
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2001
Added on Aug 31 2001
16 comments
1,082 views