Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-988

Old DOM example in SVG DOM API page

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.8
    • Fix Version/s: None
    • Component/s: Web Site
    • Labels:
      None
    • Environment:
      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.

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              ariel.coppes@gmail.com Ariel Coppes
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: