AbstractCreates a new BaseXmlComponent with the specified XML element name.
The XML element name (e.g., "w:p", "w:r", "w:t")
Internal
The components written in this one's place, one after another, when it can't be written as a single element, such as a run with another run in its children. Undefined when it is written as itself.
AbstractprepPrepares this component for XML serialization.
This method is called by the Formatter to convert the component into an object structure that can be serialized to XML. Subclasses must implement this to define their XML representation.
The serialization context
The XML-serializable object, or undefined to exclude from output
Abstract base class for all XML components in the library.
BaseXmlComponent defines the minimal interface that all XML components must implement. It stores the XML element name (rootKey) and requires subclasses to implement the prepForXml method for serialization.
Example