Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/docxml/src/utilities/tests.ts

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
import * as docxml from "https://deno.land/x/docxml@2.4.1/src/utilities/tests.ts";

Functions

Get a ZipArchive instance for a given file. The file name is absolute from the project directory.

Get the instance of XmlFile that correlates with an XML file in a DOCX archive. The archive location is absolute from the project directory. The file location is absolute from the ZIP root.

Get the text contents of a file in a ZIP archive. The archive location is absolute from the project directory. The file location is absolute from the ZIP root.

Get the DOM of an XML file in a ZIP archive. The archive location is absolute from the project directory. The file location is absolute from the ZIP root.

Convenient but unoptimized function to run an XPath test against the DOM of a file in the DOCX archive that has a specific relationship (such as being the "main document" or the "settings").