AbstractCreates a new BaseXmlComponent with the specified XML element name.
The XML element name (e.g., "w:p", "w:r", "w:t")
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