import { XmlFile } from "https://deno.land/x/docxml@2.1.0/src/classes/XmlFile.ts";
Properties
readonly
contentType: ContentTypeMethods
protected
toNode(): DocumentCreate a (slimdom) Document DOM for this XML file. This is useful for serializing it to string and writing to a ZIP/DOCX archive later.
deprecated
$$$toNode()getRelated(): Array<XmlFile | BinaryFile>
Get all XmlFile instances related to this one, including self. This helps the system serialize itself back to DOCX fullly.
By default only returns the instance itself but no other related instances.
isEmpty()
Let a file tell the system when it is effectively empty, so it can be omitted from the archive.
toArchive(archive: ZipArchive): void
Add all related files to the given archive.
Static Properties
readonly
contentType: ContentTypeStatic Methods
fromArchive(_archive: ZipArchive, location: string): Promise<XmlFile>
Promise a new JS instance of this file based on the given archive.