I have something like this:
Java Class
.....
@XStreamAlias("SOME_TAG")
private String someAttribute;
.....
<ROOT>
<ANOTHER_TAG>VALUE</ANOTHER_TAG>
</ROOT>
And in my xml i need to have this "SOME_TAG", if for some reason it is missing i need to throw an exception.
Can i do it with XStream?
Regards