Skip to content

Commit

Permalink
Fixes #319: validator: the generator element is in meta.xml
Browse files Browse the repository at this point in the history
Apparently this was always wrong, and nobody used -g?
  • Loading branch information
mistmist committed Sep 6, 2024
1 parent 0c77aaa commit 5cc2560
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.io.PrintStream;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.odftoolkit.odfdom.dom.OdfSchemaDocument;
import org.odftoolkit.odfdom.pkg.OdfPackage;
import org.xml.sax.InputSource;
import org.xml.sax.XMLFilter;
Expand All @@ -54,11 +55,12 @@ public void getInformation(String aDocFileName) throws ODFValidatorException {

public void getGenerator(OdfPackage aDocFile) throws ODFValidatorException {
try {
InputStream aInStream = aDocFile.getInputStream(OdfPackage.OdfFile.MANIFEST.getPath(), true);
InputStream aInStream =
aDocFile.getInputStream(OdfSchemaDocument.OdfXMLFile.META.getFileName(), true);
Logger aLogger =
new Logger(
aDocFile.getBaseURI(),
OdfPackage.OdfFile.MANIFEST.getPath(),
OdfSchemaDocument.OdfXMLFile.META.getFileName(),
m_aOut,
Logger.LogLevel.INFO);

Expand Down

0 comments on commit 5cc2560

Please sign in to comment.