System::Xml::XmlElement::set_IsEmpty method

XmlElement::set_IsEmpty method

Sets the tag format of the element.

void System::Xml::XmlElement::set_IsEmpty(bool value)
ParameterTypeDescription
valueboolThe value to set. When setting this value, if set to true, the children of the element are removed and the element is serialized in the short tag format. If set to false, the value is changed (regardless of whether or not the element has content); if the element is empty, it is serialized in the long format.

See Also