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

x/gauntlet/imports/happy_dom.ts>XMLParser

Work-in-progress front-end tool which does put a smile on my face
Latest
class XMLParser
Re-export
import { XMLParser } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";

XML parser.

Static Properties

private
_getAttributeName

Returns attribute name.

private
appendTextAndCommentNodes

Appends text and comment nodes.

private
getTextAndCommentNodes

Returns text and comment nodes from a text.

private
getUnnestableTagName

Returns a tag name if element is unnestable.

private
getXmlnsAttribute

Returns XMLNS attribute.

private
setAttributes

Sets raw attributes.

Static Methods

parse(
document: IDocument,
data: string,
evaluateScripts?: boolean,
): IElement

Parses XML/HTML and returns a root element.