import { Component } from "https://deno.land/x/docxml@2.1.0/src/classes/Component.ts";
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>.
Parameters
ancestry: Array<ComponentAncestor>