Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/docxml/src/utilities/dom.ts

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
import * as docxml from "https://deno.land/x/docxml@5.12.1/src/utilities/dom.ts";

Functions

Create a new XML DOM node using XQuery.

Parse an XML string to DOM using Slimdom's own parser function, but with the "standard" typing that Deno has for Node and Document -- so that type matching is not complicated further down the line.

Serialize an XML node to string using Slimdom's own serializer function, but with the "standard" typing that Deno has for Node and Document.

Run an XQuery Update Facility expression, maybe even repeatedly, which can change an existing DOM.