Choosing the subclass based on XML element attribute using annotation?
===

Ex:

Class A has two methods
Class B extends Class A has two methods and attribute type = "B"
Class C extends Class A has two methods and attribute type = "C"

The XML has the root element as "A" which attribute type as "B" or "C"

Could you please let me know the XML annotation should exist for class A, B and C?

Thanks in advance,
Kathir