Writer.writeXMLDeclaration

Outputs an XML declaration.

Its arguments must be an int specifying the version number (10 or 11), a string specifying the encoding (no check is performed on this parameter) and a bool specifying the standalone property of the document. Any argument can be skipped, but the specified arguments must respect the stated ordering (which is also the ordering required by the XML specification).

  1. void writeXMLDeclaration(Args args)
    struct Writer(_StringType, alias PrettyPrinter = PrettyPrinters.Minimalizer)
    void
    writeXMLDeclaration
    (
    Args...
    )
    (
    Args args
    )
    if (
    is(_StringType == string) ||
    is(_StringType == wstring)
    ||
    is(_StringType == dstring)
    )
  2. void writeXMLDeclaration(StringType version_, StringType encoding, StringType standalone)

Meta