XmlDocument.header

Attaches a header to the document.

class XmlDocument(T = char)
header
(
tstring encoding = null
)

Parameters

encoding tstring

the encoding that should be put in the header

Return Value

the receiver

Examples

auto doc = new XmlDocument!();
doc.header("UTF-8");
// <?xml version="1.0" encoding="UTF-8"?>

Meta