title: Marshalling nested classes with JAXB
body: <p>I am trying to marshal some classes I designed, with standard JAXB, the classes all have void constructors, this is my first attempt at using JAXB or marshalling/unmarhslling in any language for that matter but as I understand it JAXB should be able to marshall them without a XSD.</p>
  
  <p>The classes are as follow:</p>
  
  <pre><code>@XmlRootElement(name="place")
  class Place {
      @XmlAttribute
      //various fields and get set methods
      public Place() {          
      }
  }
  
  @XmlRootElement(name="Arc")
  class Arc {
      // various fields and get set methods
      @XmlAttribute
      Place p;
      public setPlace(Place p) {
          // ...
      }
  
      public Arc() { 
      }
  }
  
  @XmlRootElement(name="Transition")
  class Transition {
     Arc[] a;
  
     public Transition() {        
     }
  }
  </code></pre>
  
  <p>I can marshall the <code>Place</code> class but not the <code>Arc</code> class, the <code>Transition</code> I didn't even try, the classes have the <code>@XMLPropriety</code> tags but when it reaches the nested <code>Place</code> class JAXB doesn't seem to understand which XML object to map it too.</p>
  
  <p>If there is another tag I should be using for the nested class or there's another error I'm overlooking? </p>