콘텐츠로 이동
StAX-XML

stax-xml

이 콘텐츠는 아직 번역되지 않았습니다.

stax-xml


Defined in: async/EventReader.ts:13

Async iterator that yields stable, materialized XML event objects.

Use StreamReader instead when current-token access and lower allocation are more important than retaining event objects.

new EventReader(input, options?): EventReader

Defined in: async/EventReader.ts:15

StreamReaderSource

EventReaderOptions = {}

EventReader

[asyncIterator](): AsyncIterator<AnyXmlEvent>

Defined in: async/EventReader.ts:17

Return this reader as its async iterator.

AsyncIterator<AnyXmlEvent>

AsyncIterable.[asyncIterator]

next(): Promise<IteratorResult<AnyXmlEvent, any>>

Defined in: async/EventReader.ts:19

Read the next materialized event.

Promise<IteratorResult<AnyXmlEvent, any>>

AsyncIterator.next

close(): Promise<void>

Defined in: async/EventReader.ts:21

Stop parsing and close the underlying input iterator.

Promise<void>

return(): Promise<IteratorResult<AnyXmlEvent, any>>

Defined in: async/EventReader.ts:23

Close the reader when async iteration ends early.

Promise<IteratorResult<AnyXmlEvent, any>>

AsyncIterator.return


Defined in: async/StreamReader.ts:31

Asynchronous, forward-only XML reader backed by a reusable token cursor. Call next() before accessing the current token through the accessor methods.

new StreamReader(source, options?): StreamReader

Defined in: async/StreamReader.ts:39

StreamReaderSource

StreamReaderOptions = {}

StreamReader

next(): Promise<XmlEventType | null>

Defined in: async/StreamReader.ts:55

Advance to the next token, or return null at end of input.

Promise<XmlEventType | null>

close(): Promise<void>

Defined in: async/StreamReader.ts:59

Stop parsing and close the underlying input iterator.

Promise<void>

eventType(): XmlEventType

Defined in: async/StreamReader.ts:63

Return the current token type.

XmlEventType

name(): string | undefined

Defined in: async/StreamReader.ts:67

Return the current element’s qualified name.

string | undefined

text(): string | undefined

Defined in: async/StreamReader.ts:71

Return text carried by the current text-like token.

string | undefined

localName(): string | undefined

Defined in: async/StreamReader.ts:75

Return the current element’s local name.

string | undefined

prefix(): string

Defined in: async/StreamReader.ts:79

Return the current element’s namespace prefix, or an empty string.

string

namespaceURI(): string

Defined in: async/StreamReader.ts:83

Return the namespace URI resolved for the current element.

string

attributeCount(): number

Defined in: async/StreamReader.ts:87

Return the number of attributes on the current start element.

number

attributeName(index): string | undefined

Defined in: async/StreamReader.ts:91

Return an attribute’s qualified name by zero-based index.

number

string | undefined

attributeLocalName(index): string | undefined

Defined in: async/StreamReader.ts:95

Return an attribute’s local name by zero-based index.

number

string | undefined

attributePrefix(index): string | undefined

Defined in: async/StreamReader.ts:99

Return an attribute’s namespace prefix by zero-based index.

number

string | undefined

attributeNamespaceURI(index): string | undefined

Defined in: async/StreamReader.ts:103

Return an attribute’s namespace URI by zero-based index.

number

string | undefined

attributeValue(indexOrNameOrNamespace, localName?): string | undefined

Defined in: async/StreamReader.ts:107

Return an attribute value by index, qualified name, or namespace URI plus local name.

string | number

string

string | undefined

namespaceURIForPrefix(prefix): string

Defined in: async/StreamReader.ts:114

Resolve a namespace prefix in the current element scope.

string

string


Defined in: async/Writer.ts:31

Asynchronous I/O wrapper for the shared WriterCore serializer.

new Writer(output, options?): Writer

Defined in: async/Writer.ts:44

AsyncTextSink | WritableStream<Uint8Array<ArrayBufferLike>>

WriterOptions = {}

Writer

writeStartDocument(version?, encoding?, standalone?): Promise<Writer>

Defined in: async/Writer.ts:87

Write an XML declaration.

"1.0" = "1.0"

string

boolean

Promise<Writer>

writeStartElement(localName, options?): Promise<Writer>

Defined in: async/Writer.ts:98

Open an element.

string

WriteElementOptions

Promise<Writer>

writeEndElement(): Promise<Writer>

Defined in: async/Writer.ts:106

Close the current element.

Promise<Writer>

writeCharacters(text): Promise<Writer>

Defined in: async/Writer.ts:111

Write escaped character data.

string

Promise<Writer>

writeCData(cdata): Promise<Writer>

Defined in: async/Writer.ts:116

Write a CDATA section.

string

Promise<Writer>

writeAttribute(localName, value, prefix?): Promise<Writer>

Defined in: async/Writer.ts:121

Add an attribute to the open start tag.

string

string

string

Promise<Writer>

writeNamespace(prefix, uri): Promise<Writer>

Defined in: async/Writer.ts:130

Add a namespace declaration to the open start tag.

string

string

Promise<Writer>

writeComment(comment): Promise<Writer>

Defined in: async/Writer.ts:135

Write an XML comment.

string

Promise<Writer>

writeProcessingInstruction(target, data?): Promise<Writer>

Defined in: async/Writer.ts:140

Write a processing instruction.

string

string

Promise<Writer>

writeDTD(value): Promise<Writer>

Defined in: async/Writer.ts:148

Write a document type declaration.

string

Promise<Writer>

writeEvent(event): Promise<Writer>

Defined in: async/Writer.ts:153

Write one standard materialized XML event.

AnyXmlEvent

Promise<Writer>

writeRaw(xml): Promise<Writer>

Defined in: async/Writer.ts:159

Write trusted XML text without escaping.

string

Promise<Writer>

writeEndDocument(): Promise<void>

Defined in: async/Writer.ts:165

Finish the XML document and close the output.

Promise<void>

close(): Promise<void>

Defined in: async/Writer.ts:180

Close the writer and its output.

Promise<void>

flush(): Promise<void>

Defined in: async/Writer.ts:184

Flush buffered output.

Promise<void>


Defined in: sync/EventReaderSync.ts:8

Synchronous iterator that yields stable, materialized XML event objects.

new EventReaderSync(input, options?): EventReaderSync

Defined in: sync/EventReaderSync.ts:11

StreamReaderSyncInput

EventReaderSyncOptions = {}

EventReaderSync

[iterator](): Iterator<AnyXmlEvent>

Defined in: sync/EventReaderSync.ts:13

Return this reader as its iterator.

Iterator<AnyXmlEvent>

Iterable.[iterator]

next(): IteratorResult<AnyXmlEvent>

Defined in: sync/EventReaderSync.ts:15

Read the next materialized event.

IteratorResult<AnyXmlEvent>

Iterator.next

return(): IteratorResult<AnyXmlEvent>

Defined in: sync/EventReaderSync.ts:22

Close the reader when iteration ends early.

IteratorResult<AnyXmlEvent>

Iterator.return

close(): void

Defined in: sync/EventReaderSync.ts:27

Stop parsing and release the underlying input iterator.

void


Defined in: sync/StreamReaderSync.ts:28

Synchronous current-token reader. Strings are scanned directly without encoding; byte inputs are decoded in fatal mode with the configured encoding.

new StreamReaderSync(input, options?): StreamReaderSync

Defined in: sync/StreamReaderSync.ts:34

StreamReaderSyncInput

StreamReaderSyncOptions = {}

StreamReaderSync

next(): XmlEventType | null

Defined in: sync/StreamReaderSync.ts:63

Advance to the next token, or return null at end of input.

XmlEventType | null

close(): void

Defined in: sync/StreamReaderSync.ts:89

Stop parsing and release the underlying input iterator.

void

eventType(): XmlEventType

Defined in: sync/StreamReaderSync.ts:98

Return the current token type.

XmlEventType

name(): string | undefined

Defined in: sync/StreamReaderSync.ts:102

Return the current element’s qualified name.

string | undefined

text(): string | undefined

Defined in: sync/StreamReaderSync.ts:106

Return text carried by the current text-like token.

string | undefined

localName(): string | undefined

Defined in: sync/StreamReaderSync.ts:110

Return the current element’s local name.

string | undefined

prefix(): string

Defined in: sync/StreamReaderSync.ts:114

Return the current element’s namespace prefix, or an empty string.

string

namespaceURI(): string

Defined in: sync/StreamReaderSync.ts:118

Return the namespace URI resolved for the current element.

string

attributeCount(): number

Defined in: sync/StreamReaderSync.ts:122

Return the number of attributes on the current start element.

number

attributeName(index): string | undefined

Defined in: sync/StreamReaderSync.ts:126

Return an attribute’s qualified name by zero-based index.

number

string | undefined

attributeLocalName(index): string | undefined

Defined in: sync/StreamReaderSync.ts:130

Return an attribute’s local name by zero-based index.

number

string | undefined

attributePrefix(index): string | undefined

Defined in: sync/StreamReaderSync.ts:134

Return an attribute’s namespace prefix by zero-based index.

number

string | undefined

attributeNamespaceURI(index): string | undefined

Defined in: sync/StreamReaderSync.ts:138

Return an attribute’s namespace URI by zero-based index.

number

string | undefined

attributeValue(indexOrNameOrNamespace, localName?): string | undefined

Defined in: sync/StreamReaderSync.ts:142

Return an attribute value by index, qualified name, or namespace URI plus local name.

string | number

string

string | undefined

namespaceURIForPrefix(prefix): string

Defined in: sync/StreamReaderSync.ts:151

Resolve a namespace prefix in the current element scope.

string

string


Defined in: sync/WriterSync.ts:35

String-based synchronous XML writer.

new WriterSync(options?, encoding?): WriterSync

Defined in: sync/WriterSync.ts:39

WriterSyncOptions = {}

string = ...

WriterSync

getXmlString(): string

Defined in: sync/WriterSync.ts:48

Return XML accumulated by this string writer.

string

writeStartDocument(version?, encoding?, standalone?): this

Defined in: sync/WriterSync.ts:56

Write an XML declaration.

"1.0" = "1.0"

string

boolean

this

writeEndDocument(): void

Defined in: sync/WriterSync.ts:65

Finish the XML document.

void

writeStartElement(localName, options?): this

Defined in: sync/WriterSync.ts:69

Open an element.

string

WriteElementOptions

this

writeEndElement(): this

Defined in: sync/WriterSync.ts:77

Close the current element.

this

writeCharacters(text): this

Defined in: sync/WriterSync.ts:82

Write escaped character data.

string

this

writeCData(cdata): this

Defined in: sync/WriterSync.ts:87

Write a CDATA section.

string

this

writeAttribute(localName, value, prefix?): this

Defined in: sync/WriterSync.ts:92

Add an attribute to the open start tag.

string

string

string

this

writeNamespace(prefix, uri): this

Defined in: sync/WriterSync.ts:101

Add a namespace declaration to the open start tag.

string

string

this

writeComment(comment): this

Defined in: sync/WriterSync.ts:106

Write an XML comment.

string

this

writeProcessingInstruction(target, data?): this

Defined in: sync/WriterSync.ts:111

Write a processing instruction.

string

string

this

writeDTD(value): this

Defined in: sync/WriterSync.ts:116

Write a document type declaration.

string

this

writeEvent(event): this

Defined in: sync/WriterSync.ts:121

Write one standard materialized XML event.

AnyXmlEvent

this

writeRaw(xml): this

Defined in: sync/WriterSync.ts:127

Write trusted XML text without escaping.

string

this

setPrettyPrint(enabled): this

Defined in: sync/WriterSync.ts:132

Enable or disable pretty printing.

boolean

this

setIndentString(indentString): this

Defined in: sync/WriterSync.ts:137

Set the indentation unit used by pretty printing.

string

this

isPrettyPrintEnabled(): boolean

Defined in: sync/WriterSync.ts:142

Return whether pretty printing is enabled.

boolean

getIndentString(): string

Defined in: sync/WriterSync.ts:146

Return the current indentation unit.

string


Defined in: sync/WriterSync.ts:152

Sink-based sync writer. I/O and flushing live here, outside WriterCore.

new WriterSyncSink(sink, options?): WriterSyncSink

Defined in: sync/WriterSync.ts:159

SyncTextSink

WriterSyncSinkOptions = {}

WriterSyncSink

WriterSync.constructor

getXmlString(): string

Defined in: sync/WriterSync.ts:48

Return XML accumulated by this string writer.

string

WriterSync.getXmlString

writeStartDocument(version?, encoding?, standalone?): this

Defined in: sync/WriterSync.ts:56

Write an XML declaration.

"1.0" = "1.0"

string

boolean

this

WriterSync.writeStartDocument

writeStartElement(localName, options?): this

Defined in: sync/WriterSync.ts:69

Open an element.

string

WriteElementOptions

this

WriterSync.writeStartElement

writeEndElement(): this

Defined in: sync/WriterSync.ts:77

Close the current element.

this

WriterSync.writeEndElement

writeCharacters(text): this

Defined in: sync/WriterSync.ts:82

Write escaped character data.

string

this

WriterSync.writeCharacters

writeCData(cdata): this

Defined in: sync/WriterSync.ts:87

Write a CDATA section.

string

this

WriterSync.writeCData

writeAttribute(localName, value, prefix?): this

Defined in: sync/WriterSync.ts:92

Add an attribute to the open start tag.

string

string

string

this

WriterSync.writeAttribute

writeNamespace(prefix, uri): this

Defined in: sync/WriterSync.ts:101

Add a namespace declaration to the open start tag.

string

string

this

WriterSync.writeNamespace

writeComment(comment): this

Defined in: sync/WriterSync.ts:106

Write an XML comment.

string

this

WriterSync.writeComment

writeProcessingInstruction(target, data?): this

Defined in: sync/WriterSync.ts:111

Write a processing instruction.

string

string

this

WriterSync.writeProcessingInstruction

writeDTD(value): this

Defined in: sync/WriterSync.ts:116

Write a document type declaration.

string

this

WriterSync.writeDTD

writeEvent(event): this

Defined in: sync/WriterSync.ts:121

Write one standard materialized XML event.

AnyXmlEvent

this

WriterSync.writeEvent

writeRaw(xml): this

Defined in: sync/WriterSync.ts:127

Write trusted XML text without escaping.

string

this

WriterSync.writeRaw

setPrettyPrint(enabled): this

Defined in: sync/WriterSync.ts:132

Enable or disable pretty printing.

boolean

this

WriterSync.setPrettyPrint

setIndentString(indentString): this

Defined in: sync/WriterSync.ts:137

Set the indentation unit used by pretty printing.

string

this

WriterSync.setIndentString

isPrettyPrintEnabled(): boolean

Defined in: sync/WriterSync.ts:142

Return whether pretty printing is enabled.

boolean

WriterSync.isPrettyPrintEnabled

getIndentString(): string

Defined in: sync/WriterSync.ts:146

Return the current indentation unit.

string

WriterSync.getIndentString

writeEndDocument(): void

Defined in: sync/WriterSync.ts:200

Finish the document and flush serialized text to the sink.

void

WriterSync.writeEndDocument

flush(): void

Defined in: sync/WriterSync.ts:206

Flush buffered text to the sink.

void

close(): void

Defined in: sync/WriterSync.ts:217

Finalize the document and close the sink.

void

Defined in: async/EventReader.ts:5

Options for the asynchronous materialized-event reader.

optional documentMode?: DocumentMode

Defined in: async/StreamReader.ts:16

StreamReaderOptions.documentMode

optional namespaceAware?: boolean

Defined in: async/StreamReader.ts:18

Resolve namespaces while retaining xmlns declarations in start-event attributes.

true

StreamReaderOptions.namespaceAware

optional autoDecodeEntities?: boolean

Defined in: async/StreamReader.ts:20

Decode predefined, numeric, and configured custom entities.

true

StreamReaderOptions.autoDecodeEntities

optional addEntities?: object[]

Defined in: async/StreamReader.ts:22

Trusted internal entity replacements available without parsing a DTD.

entity: string

value: string

StreamReaderOptions.addEntities

optional encoding?: string

Defined in: async/StreamReader.ts:24

TextDecoder encoding label for byte input.

'utf-8'

StreamReaderOptions.encoding


Defined in: async/StreamReader.ts:15

Options for asynchronous current-token parsing.

optional documentMode?: DocumentMode

Defined in: async/StreamReader.ts:16

optional namespaceAware?: boolean

Defined in: async/StreamReader.ts:18

Resolve namespaces while retaining xmlns declarations in start-event attributes.

true

optional autoDecodeEntities?: boolean

Defined in: async/StreamReader.ts:20

Decode predefined, numeric, and configured custom entities.

true

optional addEntities?: object[]

Defined in: async/StreamReader.ts:22

Trusted internal entity replacements available without parsing a DTD.

entity: string

value: string

optional encoding?: string

Defined in: async/StreamReader.ts:24

TextDecoder encoding label for byte input.

'utf-8'

Defined in: async/Writer.ts:9

Options shared by the asynchronous XML writer and its serializer core.

optional encoding?: string

Defined in: async/Writer.ts:10

optional prettyPrint?: boolean

Defined in: async/Writer.ts:11

optional indentString?: string

Defined in: async/Writer.ts:12

optional addEntities?: object[]

Defined in: async/Writer.ts:13

entity: string

value: string

optional autoEncodeEntities?: boolean

Defined in: async/Writer.ts:14

optional bufferSize?: number

Defined in: async/Writer.ts:15

optional flushThreshold?: number

Defined in: async/Writer.ts:16

optional enableAutoFlush?: boolean

Defined in: async/Writer.ts:17


Defined in: async/Writer.ts:20

Text sink for external streaming encoders.

readonly encoding: string

Defined in: async/Writer.ts:21

write(chunk): void | Promise<void>

Defined in: async/Writer.ts:23

Write a serialized XML text chunk.

string

void | Promise<void>

optional flush(): void | Promise<void>

Defined in: async/Writer.ts:25

Flush buffered text when supported.

void | Promise<void>

optional close(): void | Promise<void>

Defined in: async/Writer.ts:27

Close the sink when supported.

void | Promise<void>


Defined in: core/types.ts:25

Event fired when the document starts parsing

type: "START_DOCUMENT"

Defined in: core/types.ts:26

optional version?: "1.0"

Defined in: core/types.ts:28

Present only when the source contained an XML declaration.

optional encoding?: string

Defined in: core/types.ts:29

optional standalone?: boolean

Defined in: core/types.ts:30


Defined in: core/types.ts:38

Event fired when the document ends parsing

type: "END_DOCUMENT"

Defined in: core/types.ts:39


Defined in: core/types.ts:47

Event fired when an XML element starts

type: "START_ELEMENT"

Defined in: core/types.ts:48

name: string

Defined in: core/types.ts:49

localName: string

Defined in: core/types.ts:50

prefix: string

Defined in: core/types.ts:51

namespaceURI: string

Defined in: core/types.ts:52

optional attributes?: EventAttributes

Defined in: core/types.ts:54

Attributes in source order, or undefined when the element has none.

selfClosing: boolean

Defined in: core/types.ts:56

Whether the source used an empty-element tag (<element/>).


Defined in: core/types.ts:60

Materialized attribute attached to a start-element event.

name: string

Defined in: core/types.ts:61

localName: string

Defined in: core/types.ts:62

prefix: string

Defined in: core/types.ts:63

namespaceURI: string

Defined in: core/types.ts:64

value: string

Defined in: core/types.ts:65


Defined in: core/types.ts:75

Attribute lookup table keyed by qualified XML name.

Iteration follows source order. JSON.stringify() emits the same object shape as a record while reserved JavaScript property names remain safe.

toJSON(): Record<string, EventAttribute>

Defined in: core/types.ts:77

Return a qualified-name record for JSON serialization.

Record<string, EventAttribute>


Defined in: core/types.ts:81

Event emitted when an XML element ends.

type: "END_ELEMENT"

Defined in: core/types.ts:82

name: string

Defined in: core/types.ts:83

localName: string

Defined in: core/types.ts:84

prefix: string

Defined in: core/types.ts:85

namespaceURI: string

Defined in: core/types.ts:86


Defined in: core/types.ts:90

Event containing ordinary character data.

type: "CHARACTERS"

Defined in: core/types.ts:91

value: string

Defined in: core/types.ts:92


Defined in: core/types.ts:96

Event containing CDATA content.

type: "CDATA"

Defined in: core/types.ts:97

value: string

Defined in: core/types.ts:98


Defined in: core/types.ts:102

Event containing an XML comment.

type: "COMMENT"

Defined in: core/types.ts:103

value: string

Defined in: core/types.ts:104


Defined in: core/types.ts:107

Event containing an XML processing instruction.

type: "PROCESSING_INSTRUCTION"

Defined in: core/types.ts:108

target: string

Defined in: core/types.ts:109

data: string

Defined in: core/types.ts:110


Defined in: core/types.ts:113

Event containing a document type declaration.

type: "DTD"

Defined in: core/types.ts:114

value: string

Defined in: core/types.ts:115


Defined in: core/types.ts:135

Attribute information interface

value: string

Defined in: core/types.ts:136

optional prefix?: string

Defined in: core/types.ts:137

optional uri?: string

Defined in: core/types.ts:138


Defined in: core/types.ts:207

Element writing options interface (for Writer)

optional prefix?: string

Defined in: core/types.ts:208

optional uri?: string

Defined in: core/types.ts:209

optional attributes?: Record<string, string | AttributeInfo>

Defined in: core/types.ts:210

optional selfClosing?: boolean

Defined in: core/types.ts:211

optional comment?: string

Defined in: core/types.ts:212


Defined in: sync/EventReaderSync.ts:5

Options for the synchronous materialized-event reader.

optional documentMode?: DocumentMode

Defined in: sync/StreamReaderSync.ts:12

StreamReaderSyncOptions.documentMode

optional namespaceAware?: boolean

Defined in: sync/StreamReaderSync.ts:14

Resolve namespaces while retaining xmlns declarations in start-event attributes.

true

StreamReaderSyncOptions.namespaceAware

optional autoDecodeEntities?: boolean

Defined in: sync/StreamReaderSync.ts:16

Decode predefined, numeric, and configured custom entities.

true

StreamReaderSyncOptions.autoDecodeEntities

optional addEntities?: object[]

Defined in: sync/StreamReaderSync.ts:18

Trusted internal entity replacements available without parsing a DTD.

entity: string

value: string

StreamReaderSyncOptions.addEntities

optional encoding?: string

Defined in: sync/StreamReaderSync.ts:20

TextDecoder encoding label for byte input.

'utf-8'

StreamReaderSyncOptions.encoding


Defined in: sync/StreamReaderSync.ts:11

Options for synchronous current-token parsing.

optional documentMode?: DocumentMode

Defined in: sync/StreamReaderSync.ts:12

optional namespaceAware?: boolean

Defined in: sync/StreamReaderSync.ts:14

Resolve namespaces while retaining xmlns declarations in start-event attributes.

true

optional autoDecodeEntities?: boolean

Defined in: sync/StreamReaderSync.ts:16

Decode predefined, numeric, and configured custom entities.

true

optional addEntities?: object[]

Defined in: sync/StreamReaderSync.ts:18

Trusted internal entity replacements available without parsing a DTD.

entity: string

value: string

optional encoding?: string

Defined in: sync/StreamReaderSync.ts:20

TextDecoder encoding label for byte input.

'utf-8'

Defined in: sync/WriterSync.ts:9

Sink interface for custom sync targets.

readonly optional encoding?: string

Defined in: sync/WriterSync.ts:10

write(chunk): void

Defined in: sync/WriterSync.ts:12

Write a serialized XML text chunk.

string

void

optional flush(): void

Defined in: sync/WriterSync.ts:14

Flush buffered text when supported.

void

optional close(): void

Defined in: sync/WriterSync.ts:16

Close the sink when supported.

void


Defined in: sync/WriterSync.ts:19

Options for string-based synchronous writing.

optional encoding?: string

Defined in: sync/WriterSync.ts:20

optional prettyPrint?: boolean

Defined in: sync/WriterSync.ts:21

optional indentString?: string

Defined in: sync/WriterSync.ts:22

optional addEntities?: object[]

Defined in: sync/WriterSync.ts:23

entity: string

value: string

optional autoEncodeEntities?: boolean

Defined in: sync/WriterSync.ts:24


Defined in: sync/WriterSync.ts:27

Options for incremental synchronous sink writing.

optional encoding?: string

Defined in: sync/WriterSync.ts:20

WriterSyncOptions.encoding

optional prettyPrint?: boolean

Defined in: sync/WriterSync.ts:21

WriterSyncOptions.prettyPrint

optional indentString?: string

Defined in: sync/WriterSync.ts:22

WriterSyncOptions.indentString

optional addEntities?: object[]

Defined in: sync/WriterSync.ts:23

entity: string

value: string

WriterSyncOptions.addEntities

optional autoEncodeEntities?: boolean

Defined in: sync/WriterSync.ts:24

WriterSyncOptions.autoEncodeEntities

optional bufferSize?: number

Defined in: sync/WriterSync.ts:28

optional enableAutoFlush?: boolean

Defined in: sync/WriterSync.ts:29

optional flushOnClose?: boolean

Defined in: sync/WriterSync.ts:30

optional flushThreshold?: number

Defined in: sync/WriterSync.ts:31

StreamReaderSource = AsyncIterable<Uint8Array> | ReadableStream<Uint8Array>

Defined in: async/StreamReader.ts:11

Byte-stream sources accepted by StreamReader.


XmlEventType = typeof XmlEventType[keyof typeof XmlEventType]

Defined in: core/types.ts:6

Enumeration of XML stream event types used by the StAX parser


AnyXmlEvent = StartDocumentEvent | EndDocumentEvent | StartElementEvent | EndElementEvent | CharactersEvent | CdataEvent | CommentEvent | ProcessingInstructionEvent | DtdEvent

Defined in: core/types.ts:121

Discriminated Union type for developer use


DocumentMode = "fragment" | "document"

Defined in: core/types.ts:226

XML document conformance mode.


StreamReaderSyncInput = string | Uint8Array | Iterable<Uint8Array>

Defined in: sync/StreamReaderSync.ts:9

Inputs accepted by StreamReaderSync.

const XmlEventType: object

Defined in: core/types.ts:6

Enumeration of XML stream event types used by the StAX parser

readonly START_DOCUMENT: "START_DOCUMENT" = "START_DOCUMENT"

readonly END_DOCUMENT: "END_DOCUMENT" = "END_DOCUMENT"

readonly START_ELEMENT: "START_ELEMENT" = "START_ELEMENT"

readonly END_ELEMENT: "END_ELEMENT" = "END_ELEMENT"

readonly CHARACTERS: "CHARACTERS" = "CHARACTERS"

readonly CDATA: "CDATA" = "CDATA"

readonly COMMENT: "COMMENT" = "COMMENT"

readonly PROCESSING_INSTRUCTION: "PROCESSING_INSTRUCTION" = "PROCESSING_INSTRUCTION"

readonly DTD: "DTD" = "DTD"

isStartElement(event): event is StartElementEvent

Defined in: core/types.ts:151

Type guard function - Check if the event is a START_ELEMENT event

AnyXmlEvent

XML event to check

event is StartElementEvent

true if the event is a START_ELEMENT event, false otherwise


isEndElement(event): event is EndElementEvent

Defined in: core/types.ts:160

Type guard function - Check if the event is an END_ELEMENT event

AnyXmlEvent

XML event to check

event is EndElementEvent

true if the event is an END_ELEMENT event, false otherwise


isCharacters(event): event is CharactersEvent

Defined in: core/types.ts:169

Type guard function - Check if the event is a CHARACTERS event

AnyXmlEvent

XML event to check

event is CharactersEvent

true if the event is a CHARACTERS event, false otherwise


isCdata(event): event is CdataEvent

Defined in: core/types.ts:177

Type guard function - Check if the event is a CDATA event

AnyXmlEvent

XML event to check

event is CdataEvent

true if the event is a CDATA event, false otherwise


isStartDocument(event): event is StartDocumentEvent

Defined in: core/types.ts:190

Type guard function - Check if the event is a START_DOCUMENT event

AnyXmlEvent

XML event to check

event is StartDocumentEvent

true if the event is a START_DOCUMENT event, false otherwise


isEndDocument(event): event is EndDocumentEvent

Defined in: core/types.ts:200

Type guard function - Check if the event is an END_DOCUMENT event

AnyXmlEvent

XML event to check

event is EndDocumentEvent

true if the event is an END_DOCUMENT event, false otherwise