ImmobiliareIT/src/main/java/org/openestate/io/immobiliare_it/ImmobiliareItDocument.java
public static ImmobiliareItDocument newDocument(Feed feed) throws ParserConfigurationException, JAXBException {
        if (feed.getVersion() == null)
            feed.setVersion(Version.V2_5);

        Document document = XmlUtils.newDocument();
        ImmobiliareItUtils.createMarshaller("UTF-8", true).marshal(feed, document);
        return new ImmobiliareItDocument(document);
    }
public static ImmobiliareItDocument newDocument(Feed feed) throws ParserConfigurationException, JAXBException {
        if (feed.getVersion() == null)
            feed.setVersion(Version.V2_5);

        Document document = XmlUtils.newDocument();
        ImmobiliareItUtils.createMarshaller("UTF-8", true).marshal(feed, document);
        return new ImmobiliareItDocument(document);
    }
public static ImmobiliareItDocument newDocument ( Feed feed ) throws ParserConfigurationException , JAXBException { if ( feed . getVersion ( ) == null ) feed . setVersion ( Version . V2_5 ) ; Document document = XmlUtils . newDocument ( ) ; ImmobiliareItUtils . createMarshaller ( "UTF-8" , true ) . marshal ( feed , document ) ; return new ImmobiliareItDocument ( document ) ; }
Creates a {@link ImmobiliareItDocument} from a {@link Feed} object.

@param feed Java object, that represents the &lt;feed&gt; root element
@return created document
@throws ParserConfigurationException if the parser is not properly configured
@throws JAXBException                if a problem with JAXB occurred
Creates a { @link ImmobiliareItDocument } from a { @link Feed } object .