---
title: documentTidyXML
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/xmlnode/options/documenttidyxml
---

# documentTidyXML

Changes malformed XML into valid XML during processing of the document.

## Declaration

```swift
static var documentTidyXML: XMLNode.Options { get }
```

## Discussion

Discussion It also eliminates “pretty-printing” formatting, such as leading tab characters. It does respect the xml:space="preserve" attribute. (Input)

## See Also

### Constants

- [documentTidyHTML](foundation/xmlnode/options/documenttidyhtml.md)
- [documentValidate](foundation/xmlnode/options/documentvalidate.md)
- [documentXInclude](foundation/xmlnode/options/documentxinclude.md)
- [documentIncludeContentTypeDeclaration](foundation/xmlnode/options/documentincludecontenttypedeclaration.md)
