Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Why Jaxb2.0 Validator  doing this? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Why Jaxb2.0 Validator  doing this?" Watch "Why Jaxb2.0 Validator  doing this?" New topic
Author

Why Jaxb2.0 Validator doing this?

Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 436
Hi,

My code has this snippet...




When the Validator throws an exception for whatever reasons, it is deleting my xml file too!

So you can see my hack,ie, restoreFile() method being called at every kind of exception...

What is the cause of this?

While using Castor, I did not face any such problem....

Thanks in Advance,

Maki Jav


Help gets you when you need it!
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 436
Hi,

I am so sorry! It is not the problem with this Validator but rather it was a problem with the code before this segment that was causing this behaviour.

Sorry

Maki Jav
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why Jaxb2.0 Validator doing this?