import { XmlComponent } from "https://deno.land/x/docxml@1.4.0/src/classes/XmlComponent.ts";
Constructors
new
XmlComponent(props: PropsGeneric, ...children: ChildGeneric[])Type Parameters
optional
ChildGeneric extends AnyXmlComponent | string = neverMethods
toNode(ancestry?: AnyXmlComponent[]): XmlComponentNodes
Create a DOM node for this XML component, one that can be stringified to schema-valid OOXML.
By default, an XML component would serialize to its children and string contents -- like a fragment. Most components have an override to use specific OOXML elememnts, such as <w:p>.
Static Properties
Static Methods
fromNode(_node: Node): AnyXmlComponent
matchesNode(_node: Node): boolean