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

x/sax_ts/src/sax.ts>SAX

SAX-style (Simple API for XML) in TypeScript
Go to Latest
class SAX
implements SAXInterface
import { SAX } from "https://deno.land/x/sax_ts@v1.2.10/src/sax.ts";

Constructors

new
SAX()

Index Signatures

[key: string]: any

Properties

private
attribName: any
private
attribValue: any
private
readonly
BUFFERS: string[]
private
cdata: string
private
CDATA: string
private
comment: any
private
doctype: any
private
DOCTYPE: string
private
entity: string
private
parser: (strict: boolean, opt: any) => SAXParser
private
procInstBody: any
private
procInstName: any
private
script: string
private
sgmlDecl: any
private
startTagPosition: number
private
STATE: { [index: string]: any; }
private
tagName: any
private
textNode: string
private
XML_NAMESPACE: string
private
XMLNS_NAMESPACE: string
protected
attribList: any[]
protected
bufferCheckPosition: any
protected
c: string
protected
closed: boolean
protected
closedRoot: boolean
protected
column: number
protected
error: any
protected
line: number
protected
looseCase: string
protected
noscript: boolean
protected
ns: any
protected
opt: any
protected
position: number
protected
q: string
protected
rootNS: { }
protected
S: any
protected
sawRoot: boolean
protected
state: any
protected
strict: boolean
protected
strictEntities: any
protected
tag: any
protected
tags: any[]
protected
trackPosition: boolean
protected
XML_ENTITIES: { [key: string]: string; }
ENTITIES: { [key: string]: number | string; }
EVENTS: string[]

Methods

private
attrib()
private
beginWhiteSpace(c: string)
private
closeTag()
private
closeText()
private
emitNode(nodeType: string, data?: { })
private
newTag()
private
openTag(selfClosing?: boolean)
private
parseEntity()
private
strictFail(message: string)
private
textApplyOptions(text: string): string
protected
clearBuffers()
protected
emit(event: string, data?: Error | { }): void
protected
end()
protected
errorFunction(er: string)
protected
flushBuffers()
write(chunk: null | object | string)

Static Methods

private
charAt(chunk: string, i: number)
private
isAttribEnd(c: string)
private
isMatch(regex: RegExp, c: string)
private
isQuote(c: string)
private
isWhitespace(c: string)
private
notMatch(regex: RegExp, c: string)
private
qname(name: string, attribute?: string | boolean)