title: javax.xml.bind.UnmarshalException: unexpected element (URI:"", local:"NewDataSet"). Expected elements are <{http://www.webserviceX.NET}string>
body: <p>I have searched a lot through this website and tried several things but I haven´t fixed this error yet. The error I am getting is:</p>
  
  <pre><code>javax.xml.bind.UnmarshalException: unexpected element (URI:"", local:"NewDataSet"). Expected elements are &lt;{http://www.webserviceX.NET}string&gt;
  </code></pre>
  
  <p>When trying to unmarshal I get the previous error. I am calling a webservice and I get the following result, which is a String with the following XML structure:</p>
  
  <pre><code>&lt;NewDataSet&gt;
    &lt;Table&gt;
      &lt;Book&gt;1&lt;/Book&gt;
      &lt;BookTitle&gt;Genesis&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;2&lt;/Book&gt;
      &lt;BookTitle&gt;Exodus&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;3&lt;/Book&gt;
      &lt;BookTitle&gt;Leviticus&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;4&lt;/Book&gt;
      &lt;BookTitle&gt;Numbers&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;5&lt;/Book&gt;
      &lt;BookTitle&gt;Deuteronomy&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;6&lt;/Book&gt;
      &lt;BookTitle&gt;Joshua&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;7&lt;/Book&gt;
      &lt;BookTitle&gt;Judges&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;8&lt;/Book&gt;
      &lt;BookTitle&gt;Ruth&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;9&lt;/Book&gt;
      &lt;BookTitle&gt;1 Samuel&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;10&lt;/Book&gt;
      &lt;BookTitle&gt;2 Samuel&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;11&lt;/Book&gt;
      &lt;BookTitle&gt;1 Kings&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;12&lt;/Book&gt;
      &lt;BookTitle&gt;2 Kings&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;13&lt;/Book&gt;
      &lt;BookTitle&gt;1 Chronicles&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;14&lt;/Book&gt;
      &lt;BookTitle&gt;2 Chronicles&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;15&lt;/Book&gt;
      &lt;BookTitle&gt;Ezra&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;16&lt;/Book&gt;
      &lt;BookTitle&gt;Nehemiah&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;17&lt;/Book&gt;
      &lt;BookTitle&gt;Esther&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;18&lt;/Book&gt;
      &lt;BookTitle&gt;Job&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;19&lt;/Book&gt;
      &lt;BookTitle&gt;Psalms&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;20&lt;/Book&gt;
      &lt;BookTitle&gt;Proverbs&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;21&lt;/Book&gt;
      &lt;BookTitle&gt;Ecclesiastes&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;22&lt;/Book&gt;
      &lt;BookTitle&gt;Song of Solomon&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;23&lt;/Book&gt;
      &lt;BookTitle&gt;Isaiah&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;24&lt;/Book&gt;
      &lt;BookTitle&gt;Jeremiah&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;25&lt;/Book&gt;
      &lt;BookTitle&gt;Lamentations&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;26&lt;/Book&gt;
      &lt;BookTitle&gt;Ezekiel&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;27&lt;/Book&gt;
      &lt;BookTitle&gt;Daniel&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;28&lt;/Book&gt;
      &lt;BookTitle&gt;Hosea&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;29&lt;/Book&gt;
      &lt;BookTitle&gt;Joel&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;30&lt;/Book&gt;
      &lt;BookTitle&gt;Amos&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;31&lt;/Book&gt;
      &lt;BookTitle&gt;Obadiah&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;32&lt;/Book&gt;
      &lt;BookTitle&gt;Jonah&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;33&lt;/Book&gt;
      &lt;BookTitle&gt;Micah&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;34&lt;/Book&gt;
      &lt;BookTitle&gt;Nahum&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;35&lt;/Book&gt;
      &lt;BookTitle&gt;Habakkuk&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;36&lt;/Book&gt;
      &lt;BookTitle&gt;Zephaniah&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;37&lt;/Book&gt;
      &lt;BookTitle&gt;Haggai&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;38&lt;/Book&gt;
      &lt;BookTitle&gt;Zechariah&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;39&lt;/Book&gt;
      &lt;BookTitle&gt;Malachi&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;40&lt;/Book&gt;
      &lt;BookTitle&gt;Matthew&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;41&lt;/Book&gt;
      &lt;BookTitle&gt;Mark&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;42&lt;/Book&gt;
      &lt;BookTitle&gt;Luke&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;43&lt;/Book&gt;
      &lt;BookTitle&gt;John&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;44&lt;/Book&gt;
      &lt;BookTitle&gt;Acts&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;45&lt;/Book&gt;
      &lt;BookTitle&gt;Romans&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;46&lt;/Book&gt;
      &lt;BookTitle&gt;1 Corinthians&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;47&lt;/Book&gt;
      &lt;BookTitle&gt;2 Corinthians&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;48&lt;/Book&gt;
      &lt;BookTitle&gt;Galatians&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;49&lt;/Book&gt;
      &lt;BookTitle&gt;Ephesians&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;50&lt;/Book&gt;
      &lt;BookTitle&gt;Philippians&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;51&lt;/Book&gt;
      &lt;BookTitle&gt;Colossians&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;52&lt;/Book&gt;
      &lt;BookTitle&gt;1 Thessalonians&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;53&lt;/Book&gt;
      &lt;BookTitle&gt;2 Thessalonians&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;54&lt;/Book&gt;
      &lt;BookTitle&gt;1 Timothy&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;55&lt;/Book&gt;
      &lt;BookTitle&gt;2 Timothy&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;56&lt;/Book&gt;
      &lt;BookTitle&gt;Titus&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;57&lt;/Book&gt;
      &lt;BookTitle&gt;Philemon&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;58&lt;/Book&gt;
      &lt;BookTitle&gt;Hebrews&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;59&lt;/Book&gt;
      &lt;BookTitle&gt;James&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;60&lt;/Book&gt;
      &lt;BookTitle&gt;1 Peter&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;61&lt;/Book&gt;
      &lt;BookTitle&gt;2 Peter&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;62&lt;/Book&gt;
      &lt;BookTitle&gt;1 John&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;63&lt;/Book&gt;
      &lt;BookTitle&gt;2 John&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;64&lt;/Book&gt;
      &lt;BookTitle&gt;3 John&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;65&lt;/Book&gt;
      &lt;BookTitle&gt;Jude&lt;/BookTitle&gt;
    &lt;/Table&gt;
    &lt;Table&gt;
      &lt;Book&gt;66&lt;/Book&gt;
      &lt;BookTitle&gt;Revelation&lt;/BookTitle&gt;
    &lt;/Table&gt;
  &lt;/NewDataSet&gt;
  </code></pre>
  
  <p>The code I am using is the following one:</p>
  
  <pre><code>public class Main {
  public static void main(String[] args) throws ParserConfigurationException, SAXException, IOException, ClassNotFoundException {
      BibleWebservice service = new BibleWebservice();
      BibleWebserviceSoap soap = service.getBibleWebserviceSoap();
      String bookTitles = soap.getBookTitles();
      try {
          StringReader sr = new StringReader(bookTitles);
          JAXBContext jaxbContext = JAXBContext.newInstance(Book.class);
          Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
          Book book = (Book)jaxbUnmarshaller.unmarshal(sr);
          //Book book = ((JAXBElement&lt;Book&gt;) jaxbContext.createUnmarshaller().unmarshal(sr)).getValue();
      } catch (JAXBException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      //System.out.println(bookTitles);
  }
  
  }
  </code></pre>
  
  <p>My Book class is:</p>
  
  <pre><code>    //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
  // See &lt;a href="http://java.sun.com/xml/jaxb"&gt;http://java.sun.com/xml/jaxb&lt;/a&gt; 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2017.01.25 at 03:45:20 PM GMT 
  //
  
  
  package filesgeneratedfromxml;
  
  import java.util.ArrayList;
  import java.util.List;
  import javax.xml.bind.annotation.XmlAccessType;
  import javax.xml.bind.annotation.XmlAccessorType;
  import javax.xml.bind.annotation.XmlElement;
  import javax.xml.bind.annotation.XmlRootElement;
  import javax.xml.bind.annotation.XmlType;
  
  
  /**
   * &lt;p&gt;Java class for anonymous complex type.
   * 
   * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
   * 
   * &lt;pre&gt;
   * &amp;lt;complexType&gt;
   *   &amp;lt;complexContent&gt;
   *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
   *       &amp;lt;sequence&gt;
   *         &amp;lt;element name="NewDataSet"&gt;
   *           &amp;lt;complexType&gt;
   *             &amp;lt;complexContent&gt;
   *               &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
   *                 &amp;lt;choice maxOccurs="unbounded" minOccurs="0"&gt;
   *                   &amp;lt;element name="Table"&gt;
   *                     &amp;lt;complexType&gt;
   *                       &amp;lt;complexContent&gt;
   *                         &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
   *                           &amp;lt;sequence&gt;
   *                             &amp;lt;element name="Book" type="{http://www.w3.org/2001/XMLSchema}byte"/&gt;
   *                             &amp;lt;element name="BookTitle" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
   *                           &amp;lt;/sequence&gt;
   *                         &amp;lt;/restriction&gt;
   *                       &amp;lt;/complexContent&gt;
   *                     &amp;lt;/complexType&gt;
   *                   &amp;lt;/element&gt;
   *                 &amp;lt;/choice&gt;
   *               &amp;lt;/restriction&gt;
   *             &amp;lt;/complexContent&gt;
   *           &amp;lt;/complexType&gt;
   *         &amp;lt;/element&gt;
   *       &amp;lt;/sequence&gt;
   *     &amp;lt;/restriction&gt;
   *   &amp;lt;/complexContent&gt;
   * &amp;lt;/complexType&gt;
   * &lt;/pre&gt;
   * 
   * 
   */
  @XmlAccessorType(XmlAccessType.FIELD)
  @XmlType(name = "", propOrder = {
      "newDataSet"
  })
  @XmlRootElement(name = "string")
  public class Book {
  
      @XmlElement(name = "NewDataSet", required = true)
      protected Book.NewDataSet newDataSet;
  
      /**
       * Gets the value of the newDataSet property.
       * 
       * @return
       *     possible object is
       *     {@link Book.NewDataSet }
       *     
       */
      public Book.NewDataSet getNewDataSet() {
          return newDataSet;
      }
  
      /**
       * Sets the value of the newDataSet property.
       * 
       * @param value
       *     allowed object is
       *     {@link Book.NewDataSet }
       *     
       */
      public void setNewDataSet(Book.NewDataSet value) {
          this.newDataSet = value;
      }
  
  
      /**
       * &lt;p&gt;Java class for anonymous complex type.
       * 
       * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
       * 
       * &lt;pre&gt;
       * &amp;lt;complexType&gt;
       *   &amp;lt;complexContent&gt;
       *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
       *       &amp;lt;choice maxOccurs="unbounded" minOccurs="0"&gt;
       *         &amp;lt;element name="Table"&gt;
       *           &amp;lt;complexType&gt;
       *             &amp;lt;complexContent&gt;
       *               &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
       *                 &amp;lt;sequence&gt;
       *                   &amp;lt;element name="Book" type="{http://www.w3.org/2001/XMLSchema}byte"/&gt;
       *                   &amp;lt;element name="BookTitle" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
       *                 &amp;lt;/sequence&gt;
       *               &amp;lt;/restriction&gt;
       *             &amp;lt;/complexContent&gt;
       *           &amp;lt;/complexType&gt;
       *         &amp;lt;/element&gt;
       *       &amp;lt;/choice&gt;
       *     &amp;lt;/restriction&gt;
       *   &amp;lt;/complexContent&gt;
       * &amp;lt;/complexType&gt;
       * &lt;/pre&gt;
       * 
       * 
       */
      @XmlAccessorType(XmlAccessType.FIELD)
      @XmlType(name = "", propOrder = {
          "table"
      })
      public static class NewDataSet {
  
          @XmlElement(name = "Table")
          protected List&lt;Book.NewDataSet.Table&gt; table;
  
          /**
           * Gets the value of the table property.
           * 
           * &lt;p&gt;
           * This accessor method returns a reference to the live list,
           * not a snapshot. Therefore any modification you make to the
           * returned list will be present inside the JAXB object.
           * This is why there is not a &lt;CODE&gt;set&lt;/CODE&gt; method for the table property.
           * 
           * &lt;p&gt;
           * For example, to add a new item, do as follows:
           * &lt;pre&gt;
           *    getTable().add(newItem);
           * &lt;/pre&gt;
           * 
           * 
           * &lt;p&gt;
           * Objects of the following type(s) are allowed in the list
           * {@link Book.NewDataSet.Table }
           * 
           * 
           */
          public List&lt;Book.NewDataSet.Table&gt; getTable() {
              if (table == null) {
                  table = new ArrayList&lt;Book.NewDataSet.Table&gt;();
              }
              return this.table;
          }
  
  
          /**
           * &lt;p&gt;Java class for anonymous complex type.
           * 
           * &lt;p&gt;The following schema fragment specifies the expected content contained within this class.
           * 
           * &lt;pre&gt;
           * &amp;lt;complexType&gt;
           *   &amp;lt;complexContent&gt;
           *     &amp;lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
           *       &amp;lt;sequence&gt;
           *         &amp;lt;element name="Book" type="{http://www.w3.org/2001/XMLSchema}byte"/&gt;
           *         &amp;lt;element name="BookTitle" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
           *       &amp;lt;/sequence&gt;
           *     &amp;lt;/restriction&gt;
           *   &amp;lt;/complexContent&gt;
           * &amp;lt;/complexType&gt;
           * &lt;/pre&gt;
           * 
           * 
           */
          @XmlAccessorType(XmlAccessType.FIELD)
          @XmlType(name = "", propOrder = {
              "book",
              "bookTitle"
          })
          public static class Table {
  
              @XmlElement(name = "Book")
              protected byte book;
              @XmlElement(name = "BookTitle", required = true)
              protected java.lang.String bookTitle;
  
              /**
               * Gets the value of the book property.
               * 
               */
              public byte getBook() {
                  return book;
              }
  
              /**
               * Sets the value of the book property.
               * 
               */
              public void setBook(byte value) {
                  this.book = value;
              }
  
              /**
               * Gets the value of the bookTitle property.
               * 
               * @return
               *     possible object is
               *     {@link java.lang.String }
               *     
               */
              public java.lang.String getBookTitle() {
                  return bookTitle;
              }
  
              /**
               * Sets the value of the bookTitle property.
               * 
               * @param value
               *     allowed object is
               *     {@link java.lang.String }
               *     
               */
              public void setBookTitle(java.lang.String value) {
                  this.bookTitle = value;
              }
  
          }
  
      }
  
  }
  </code></pre>
  
  <p>My package-info class is:</p>
  
  <pre><code> //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
  // See &lt;a href="http://java.sun.com/xml/jaxb"&gt;http://java.sun.com/xml/jaxb&lt;/a&gt; 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2017.01.25 at 03:45:20 PM GMT 
  //
  
  @javax.xml.bind.annotation.XmlSchema(namespace = "http://www.webserviceX.NET", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
  package filesgeneratedfromxml;
  </code></pre>
  
  <p>And my ObjectFactory class is:</p>
  
  <pre><code>    //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
  // See &lt;a href="http://java.sun.com/xml/jaxb"&gt;http://java.sun.com/xml/jaxb&lt;/a&gt; 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2017.01.25 at 03:45:20 PM GMT 
  //
  
  
  package filesgeneratedfromxml;
  
  import javax.xml.bind.annotation.XmlRegistry;
  
  
  /**
   * This object contains factory methods for each 
   * Java content interface and Java element interface 
   * generated in the filesgeneratedfromxml package. 
   * &lt;p&gt;An ObjectFactory allows you to programatically 
   * construct new instances of the Java representation 
   * for XML content. The Java representation of XML 
   * content can consist of schema derived interfaces 
   * and classes representing the binding of schema 
   * type definitions, element declarations and model 
   * groups.  Factory methods for each of these are 
   * provided in this class.
   * 
   */
  @XmlRegistry
  public class ObjectFactory {
  
  
      /**
       * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: filesgeneratedfromxml
       * 
       */
      public ObjectFactory() {
      }
  
      /**
       * Create an instance of {@link Book.NewDataSet.Table }
       * 
       */
      public Book.NewDataSet.Table createStringNewDataSetTable() {
          return new Book.NewDataSet.Table();
      }
  
      /**
       * Create an instance of {@link Book }
       * 
       */
      public Book createString() {
          return new Book();
      }
  
      /**
       * Create an instance of {@link Book.NewDataSet }
       * 
       */
      public Book.NewDataSet createStringNewDataSet() {
          return new Book.NewDataSet();
      }
  
  }
  </code></pre>
  
  <p>Any idea on why I am getting the error?</p>