XmlElement.this

this(XmlQName name, XmlLocation location = XmlLocation.init) @safe

Constructs an element from a validated XmlQName.

this(string qname, XmlLocation location = XmlLocation.init) @safe

Constructs an element by parsing and validating a QName.

Parameters

qnameThe element QName.
locationSource location for the element.

Throws

XmlException if qname is not a valid QName.