Class OdfMetaDom

    • Constructor Detail

      • OdfMetaDom

        public OdfMetaDom​(OdfSchemaDocument odfDocument,
                          String packagePath)
        Creates the DOM representation of an XML file of an Odf document.
        Parameters:
        odfDocument - the document the XML files belongs to
        packagePath - the internal package path to the XML file
    • Method Detail

      • initialize

        protected void initialize()
        Might be used to initialize specific XML Namespace prefixes/URIs for this XML file
        Overrides:
        initialize in class OdfFileDom
      • getXPath

        public XPath getXPath()
        Creates an JDK XPath instance. Initialized with ODF namespaces from OdfDocumentNamespace. Updated with all namespace of the XML file.
        Overrides:
        getXPath in class OdfFileDom
        Returns:
        an XPath instance with namespace context set to include the standard ODFDOM prefixes.