title: How to parse <foo value1="a" value2="b">value3</foo> with JAXB?
body: <p>A substring of my XML looks like this:</p>
  
  <pre><code>&lt;foo value1="a" value2="b"&gt;value3&lt;/foo&gt;
  </code></pre>
  
  <p>I'm trying to parse this using JAXB. I've managed to parse the values value1 and value2 but I'm having problems with the "root" value since it doesn't have any tag associated with it.</p>
  
  <p>My class:</p>
  
  <pre><code>@XmlType(propOrder = {"value3"}, name = "foo")
  @XmlAccessorType(XmlAccessType.FIELD)
  public class Foo
  {
      @XmlAttribute
      private String value1;
  
      @XmlAttribute
      private String value2;
  
      @XmlElement(name = "")
      private String value3;
  }
  </code></pre>
  
  <p>Any ideas?</p>