Interface DomHandlerOptions

interface DomHandlerOptions {
    withEndIndices?: boolean;
    withStartIndices?: boolean;
    xmlMode?: boolean;
}

Properties

withEndIndices?: boolean

Add an endIndex property to nodes. When the parser is used in a non-streaming fashion, endIndex is an integer indicating the position of the end of the node in the document.

false
withStartIndices?: boolean

Add a startIndex property to nodes. When the parser is used in a non-streaming fashion, startIndex is an integer indicating the position of the start of the node in the document.

false
xmlMode?: boolean

Treat the markup as XML.

false