Skip to content

Add XML-specific DOM factories and document metadata #29

Description

@FlorianRappl

Description

Extend the XML document surface with XML-native DOM capabilities that are currently not directly exposed through the XML package. Proposed additions include factory methods and metadata accessors such as:

  • create CDATA sections
  • create entity references (or an explicit non-support contract if intentionally omitted)
  • expose XML declaration metadata such as version, encoding, and standalone

This would make the XML DOM API more complete and easier to use without dropping down to non-XML abstractions.

Background

User scenarios include:

  • building or transforming XML while preserving XML-native node constructs
  • tooling that needs declaration metadata for validation, migration, or diagnostics
  • interoperability with systems expecting classic XML DOM-style operations

Today, users can parse and serialize XML, but XML-specific document-level affordances are relatively minimal compared to expectations from XML-focused APIs.

Specification

Relevant specifications:

  • W3C XML 1.0 (Fifth Edition), especially sections on XML declaration and document structure
  • DOM Standard (document and node creation APIs)
  • Historical compatibility target: DOM Level 3 Core XML-related document behaviors

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions