public void fromXML(String file) throws DocumentException
    {
        SAXReader reader = new SAXReader();
        fromXML(reader.read(new StringReader(file)));
    }
public void fromXML ( String file ) throws DocumentException { SAXReader reader = new SAXReader ( ) ; fromXML ( reader . read ( new StringReader ( file ) ) ) ; }
Parse XML file to extract document information.

@param file the xml file
@throws DocumentException error when parsing XML file