Interface IXmlBuilder
interface IXmlBuilder {
att(ns: string | null, n: string, v: string): IXmlBuilder;
dec(version: string, encoding?: string, standalone?: boolean): IXmlBuilder;
ele(ns: string | null, n: string): IXmlBuilder;
end(): IXmlBuilder;
text(txt: string): IXmlBuilder;
}
att(ns: string | null, n: string, v: string): IXmlBuilder;
dec(version: string, encoding?: string, standalone?: boolean): IXmlBuilder;
ele(ns: string | null, n: string): IXmlBuilder;
end(): IXmlBuilder;
text(txt: string): IXmlBuilder;
}
Implemented by
Methods
att
-
Writes an XML attribute.
Parameters
- ns: string | null
defines the attribute namespace
- n: string
defines the attribute name
- v: string
defines the attribute value
Returns IXmlBuilder
the XML builder
- ns: string | null
dec
-
Writes the XML declaration.
Parameters
- version: string
defines the XML version
Optionalencoding: stringdefines the optional XML encoding
Optionalstandalone: booleandefines the optional standalone flag
Returns IXmlBuilder
the XML builder
- version: string
ele
-
Writes an XML element.
Parameters
- ns: string | null
defines the element namespace
- n: string
defines the element name
Returns IXmlBuilder
the XML builder
- ns: string | null
end
text
-
Writes text content.
Parameters
- txt: string
defines the text to write
Returns IXmlBuilder
the XML builder
- txt: string
Provides a fluent interface for writing XML content.