public XmlVisioDocument(OPCPackage pkg) throws IOException { super(pkg, PackageRelationshipTypes.VISIO_CORE_DOCUMENT); VisioDocumentType document; try { document = VisioDocumentDocument1.Factory.parse(getPackagePart().getInputStream()).getVisioDocument(); } catch (XmlException | IOException e) { throw new POIXMLException(e); } _document = new XDGFDocument(document); //build a tree of POIXMLDocumentParts, this document being the root load(new XDGFFactory(_document)); }
public XmlVisioDocument(OPCPackage pkg) throws IOException { super(pkg, PackageRelationshipTypes.VISIO_CORE_DOCUMENT); VisioDocumentType document; try { document = VisioDocumentDocument1.Factory.parse(getPackagePart().getInputStream()).getVisioDocument(); } catch (XmlException | IOException e) { throw new POIXMLException(e); } _document = new XDGFDocument(document); //build a tree of POIXMLDocumentParts, this document being the root load(new XDGFFactory(_document)); }