import { XmlFile } from "https://deno.land/x/docxml@5.12.0/src/classes/XmlFile.ts";
Properties
readonly
contentType: FileMimeMethods
protected
toNode(): Document | Promise<Document>Create 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()addToArchive(archive: Archive): Promise<void>
Add all related files to the given archive.
getRelated(): Array<XmlFile | BinaryFile>
Get all XmlFile instances related to this one, including self. This helps the system serialize itself back to DOCX fullly. Probably not useful for consumers of the library.
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.
Static Properties
readonly
contentType: FileMimeStatic Methods
fromArchive(_archive: Archive, location: string): Promise<XmlFile>
Promise a new JS instance of this file based on the given archive.