// Path: jaxb-unmarshal-string/src/main/java/info/source4code/jaxb/model/Car.java
// @XmlRootElement(namespace = "info.source4code.jaxb.model", name = "Car")
// public class Car {
// 
//     private String make;
//     private String manufacturer;
//     private String id;
// 
//     public String getMake() {
//         return make;
//     }
// 
//     @XmlElement
//     public void setMake(String make) {
//         this.make = make;
//     }
// 
//     public String getManufacturer() {
//         return manufacturer;
//     }
// 
//     @XmlElement
//     public void setManufacturer(String manufacturer) {
//         this.manufacturer = manufacturer;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     @XmlAttribute
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String toString() {
//         return "Car [" + "make=" + make + ", manufacturer=" + manufacturer
//                 + ", id=" + id + "]";
//     }
// }


import info.source4code.jaxb.model.Car;
import java.io.File;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import javax.xml.transform.stream.StreamSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
package info.source4code.jaxb;





public final class UnmarshalHelper {

    private static final Logger LOGGER = LoggerFactory
            .getLogger(UnmarshalHelper.class);

    private UnmarshalHelper() {
        // not called
    }

    public static Car unmarshalError(File file) throws JAXBException {
        JAXBContext jaxbContext = JAXBContext.newInstance(Car.class);
        Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();

// Path: jaxb-unmarshal-string/src/main/java/info/source4code/jaxb/model/Car.java
// @XmlRootElement(namespace = "info.source4code.jaxb.model", name = "Car")
// public class Car {
// 
//     private String make;
//     private String manufacturer;
//     private String id;
// 
//     public String getMake() {
//         return make;
//     }
// 
//     @XmlElement
//     public void setMake(String make) {
//         this.make = make;
//     }
// 
//     public String getManufacturer() {
//         return manufacturer;
//     }
// 
//     @XmlElement
//     public void setManufacturer(String manufacturer) {
//         this.manufacturer = manufacturer;
//     }
// 
//     public String getId() {
//         return id;
//     }
// 
//     @XmlAttribute
//     public void setId(String id) {
//         this.id = id;
//     }
// 
//     public String toString() {
//         return "Car [" + "make=" + make + ", manufacturer=" + manufacturer
//                 + ", id=" + id + "]";
//     }
// }


// Path: jaxb-missing-rootelement/src/main/java/info/source4code/jaxb/UnmarshalHelper.java
import info.source4code.jaxb.model.Car;
import java.io.File;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import javax.xml.transform.stream.StreamSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

package info.source4code.jaxb;





public final class UnmarshalHelper {

    private static final Logger LOGGER = LoggerFactory
            .getLogger(UnmarshalHelper.class);

    private UnmarshalHelper() {
        // not called
    }

    public static Car unmarshalError(File file) throws JAXBException {
        JAXBContext jaxbContext = JAXBContext.newInstance(Car.class);
        Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();

        Car car = (Car) jaxbUnmarshaller.unmarshal(file);