java - how to use @XmlMixed in jaxB -


how use @xmlmixed ess content value 'essvalue'. i'm getting ess content value null . please @xmlmixed annotation

ess.xml

 <?xml version="1.0" encoding="utf-8"?>     <ess id="9b8fb6c4-9636-11e0-8718-88f89cff4b22">         essvalue        <title id="test">common core content standards</title>        <title id="test2">test</title>      </ess> 

i want read ess value 'essvalue' .

and have ess java class

@xmlrootelement(name="ess") public class ess {      private string id;      @xmlmixed     private string content;      private list<title> title;      @xmlattribute     public string getid ()     {         return id;     }      public void setid (string id)     {         this.id = id;     }      @override     public string tostring()     {         return "classpojo [id = "+id+", title = "+title+"]";     }      @xmlelementref(name="ess",type=title.class)     public list<title> gettitle() {         return title;     }      public void settitle(list<title> title) {         title = title;     }      public string getcontent() {         return content;     }      public void setcontent(string content) {         this.content = content;     } } 


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -