Properties
validationErrors
validationErrors: any[]
Methods
createElement
- createElement(name: string, content?: string): XMLElement
-
Parameters
-
name: string
-
content: string = ""
createProcessingInstruction
- createProcessingInstruction(name: string, content?: string): XMLText
-
Parameters
-
name: string
-
Optional
content: string
Returns XMLText
createText
- createText(content?: string, encode?: boolean): XMLText
-
Parameters
-
Optional
content: string
-
encode: boolean = true
Returns XMLText
encode
- encode(data: string): string
-
Returns string
encoding
- encoding(value?: string): string
-
Returns string
find
- find(xpath: string, namespace?: XPathNamespace): XMLXPathNode[]
-
Parameters
-
xpath: string
-
Optional
namespace: XPathNamespace
Returns XMLXPathNode[]
get
- get(xpath: string, namespace?: XPathNamespace): null | string | number | boolean | XMLXPathNode
-
Parameters
-
xpath: string
-
Optional
namespace: XPathNamespace
Returns null | string | number | boolean | XMLXPathNode
getDtd
- getDtd(): null | XMLDTD
-
Returns null | XMLDTD
getParseFlags
- getParseFlags(): number
-
Returns number
name
- name(): string
-
Returns string
node
- node(name: string, content?: string): XMLElement
-
Parameters
-
name: string
-
Optional
content: string
rngValidate
- rngValidate(schemaDoc: XMLDocument): boolean
-
Returns boolean
setDtd
- setDtd(name: string, externalId?: null | string, systemId?: null | string): null | XMLDTD
-
Parameters
-
name: string
-
externalId: null | string = null
-
systemId: null | string = null
Returns null | XMLDTD
type
- type(): string
-
Returns string
validate
- validate(schemaDoc: XMLDocument): unknown
-
Returns unknown
version
- version(): null | string
-
Returns null | string
See
XMLNode.child