Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
1.8
-
None
-
None
-
Operating System: All
Platform: PC
Description
The examples of the page are old:
try {
String parser = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
String uri = "http://www.example.org/diagram.svg";
Document doc = f.createDocument(uri);
} catch (IOException ex) {
// ...
}
SAXSVGDocumentFactory is now SAXDocumentFactory -> http://xmlgraphics.apache.org/batik/javadoc/org/apache/batik/dom/util/SAXDocumentFactory.html
Even the constructor differs.