Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-172

Enable mechanism to initiate custom DOM classes for custom XML

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • odfdom-0.8.7
    • None
    • java
    • None
    • Operating System: Windows
      Platform: PC
    • 263

    Description

      Users might want to register their own DOM classes for their XML files.

      Currently for every ODF XML file a typed DOM tree is being generated.
      Typed DOM as every XML element & attribute is represented by a special ODF class (inheriting from DOM implementation for Element or Attr).
      The sources of those typed DOM classes are being generated from the ODF schema. Their purpose is to give the user a clue about what can be added to the XML node.

      The classes being used for this typed DOM tree are bundled with the ODFDOM library and intantiated when an XML file is being parsed.

      Although it is possible to exchange those classes with own implementation, it is only possible for ODF XML nodes. It is not impossible to provide own classes for custom XML and let them being invoked during parsing.

      If for instance the user might register its own Factory that take care of certain XML namespaces, the library would be extensible.
      Allowing that for instance MathML support (special DOM classes) are being added during runtime.

      Attachments

        Activity

          People

            svanteschubert@odftoolkit.org Svante Schubert
            svanteschubert@odftoolkit.org Svante Schubert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: