Skip to main content
Module

x/serializexml/mod.ts>tag

Serialize (i.e. stringify) an object into xml string.
Latest
function tag
import { tag } from "https://deno.land/x/serializexml@v0.3.2/mod.ts";

Returns a Tag

Parameters

name: string

name of the tag

optional
children: string | Tag[] = [UNSUPPORTED]

subtags/string content

optional
attributes: [string, string][] = [UNSUPPORTED]

key/value attributes of the tag