This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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: 8920

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: 19350
    
  10

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: 8920

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: 19350
    
  10

No problem... and thanks for posting what you found. That might be useful for somebody else with the same problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB not recognizing ContentHandler