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

Old DOM example in SVG DOM API page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.8
    • None
    • Web Site
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: