Skip to content

Interface: XmlAttribute ​

Defined in: netconf/src/xml/element.ts:16

An attribute of an XmlElement.

Properties ​

name ​

ts
readonly name: string;

Defined in: netconf/src/xml/element.ts:18

Local name, without prefix.


ns ​

ts
readonly ns: string | undefined;

Defined in: netconf/src/xml/element.ts:20

Namespace URI, or undefined for an unqualified attribute (the usual case).


prefix? ​

ts
readonly prefix?: string;

Defined in: netconf/src/xml/element.ts:22

Preferred prefix when serialising a qualified attribute. Optional hint only.


value ​

ts
readonly value: string;

Defined in: netconf/src/xml/element.ts:24

The attribute value, unescaped.

Released under the MIT Licence.