MimeType.addXMLnamespace

Add XML namespace.

  1. void addXMLnamespace(string namespaceURI, string localName)
    class MimeType
    @safe nothrow pure
    void
    addXMLnamespace
    (,
    string localName
    )
  2. void addXMLnamespace(XMLnamespace namespace)

Examples

auto mimeType = new MimeType("text/html");
mimeType.addXMLnamespace("http://www.w3.org/1999/xhtml", "html");
assert(mimeType.XMLnamespaces == [XMLnamespace("http://www.w3.org/1999/xhtml", "html")]);
mimeType.clearXMLnamespaces();
assert(mimeType.XMLnamespaces().empty);

Meta