Take the 2-minute tour ×  I'm currently working on replacing a
legacy system with JAXB and I'm running into problem with
parsing the XML. The number one requirement of the system is
that it must be a drop-in replacement so I cannot modify the
format of the XML. Below is the XML section that is giving me
trouble.   The issue with the XML is that all of the s# objects
are the exact same and there can be up to 256 of them. Is there
a way in JAXB to annotate such a tag or do I have to create 256
separate annotations? Any help would be most appreciated.  Here
is the java code for the xx object. Note: the object was
originally programmed with the understanding that there would
only be 2 s# objects, but that since has changed.   public class
XMLXx implements Serializable {      private static final long
serialVersionUID = 4064597372833234503L;      private XMLSite
siteOne;     private XMLSite siteTwo;      public XMLSite
getSiteOne() {         return siteOne;      public void
setSiteOne(XMLSite s1) {         this.si