Class AnnotationXml<T extends AnnotationXml<T>>


public class AnnotationXml<T extends AnnotationXml<T>> extends MathMlContainerElement<T>
Represents a MathML <annotation-xml> element.

The <annotation-xml> element provides XML-based annotations for MathML expressions. Unlike other MathML containers that only accept MathML children, this element can contain non-MathML content such as HTML or other XML markup, depending on the encoding specified.

Since:
2026
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • AnnotationXml

      public AnnotationXml()
      Creates a new MathML annotation-xml element.
  • Method Details

    • addElement

      public T addElement(Element child)
      Adds any child element to this annotation-xml container.

      Unlike other MathML containers, <annotation-xml> can contain non-MathML content such as HTML or other XML markup.

      Overrides:
      addElement in class Element<T extends AnnotationXml<T>>
      Parameters:
      child - the element to add (HTML, MathML, or other XML)
      Returns:
      this element for method chaining