Creates an ImportedRootElementAttributes component.
The attributes object to pass through
Adds a child element to this component.
The child component or text string to add
This component (for chaining)
Prepares the attributes for XML serialization.
Context (unused)
Object with _attr key containing the raw attributes
Represents attributes for imported root elements.
This class is used internally to handle attributes on root elements that are being imported from external XML. It passes through the attributes without transformation.
Example