wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes JAXB not recognizing ContentHandler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB not recognizing ContentHandler" Watch "JAXB not recognizing ContentHandler" New topic
Author

JAXB not recognizing ContentHandler

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

I am facing the same issue but for ContentHandler. JAXB is ignoring my ContentHandler.

This did not help.


Any idea ?


Groovy
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

This was originally attached to an old post which was superficially the same question. Pradeep, could you now provide some details of your problem (instead of relying on the details of somebody else's problem)?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8904

Well I checked the source code of JAXB. The unmarshaller class has it's own contenthandler and overrides the one passed by me always. So the conclusion is that we cannot pass our custom content handler and also error handler. Sorry bartender for the trouble caused.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

No problem... and thanks for posting what you found. That might be useful for somebody else with the same problem.
 
 
subject: JAXB not recognizing ContentHandler
 
Similar Threads
DOM document to Sax parser
another sample question
SAX -- DOM?
xml without root element -- JAXB.
How to add Namespaces programmatically to the XML parser ?