XmlDocument.header

Attaches a header to the document.

class XmlDocument
header
(
string encoding = null
)

Parameters

encoding string

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