---
title: nodePreserveAll
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/xmlnode/options/nodepreserveall
---

# nodePreserveAll

## Declaration

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

## Discussion

Discussion Turns on all preservation options: attribute and namespace order, entities, prefixes, CDATA, whitespace, quotes, and empty elements. You should try to turn on preservation options selectively because turning on all preservation options significantly affects performance.

## See Also

### Constants

- [documentIncludeContentTypeDeclaration](foundation/xmlnode/options/documentincludecontenttypedeclaration.md)
- [documentTidyHTML](foundation/xmlnode/options/documenttidyhtml.md)
- [documentTidyXML](foundation/xmlnode/options/documenttidyxml.md)
- [documentValidate](foundation/xmlnode/options/documentvalidate.md)
- [documentXInclude](foundation/xmlnode/options/documentxinclude.md)
- [nodeCompactEmptyElement](foundation/xmlnode/options/nodecompactemptyelement.md)
- [nodeExpandEmptyElement](foundation/xmlnode/options/nodeexpandemptyelement.md)
- [nodeIsCDATA](foundation/xmlnode/options/nodeiscdata.md)
- [nodeLoadExternalEntitiesAlways](foundation/xmlnode/options/nodeloadexternalentitiesalways.md)
- [nodeLoadExternalEntitiesNever](foundation/xmlnode/options/nodeloadexternalentitiesnever.md)
- [nodeLoadExternalEntitiesSameOriginOnly](foundation/xmlnode/options/nodeloadexternalentitiessameoriginonly.md)
- [nodeNeverEscapeContents](foundation/xmlnode/options/nodeneverescapecontents.md)
- [nodePreserveAttributeOrder](foundation/xmlnode/options/nodepreserveattributeorder.md)
- [nodePreserveCDATA](foundation/xmlnode/options/nodepreservecdata.md)
- [nodePreserveCharacterReferences](foundation/xmlnode/options/nodepreservecharacterreferences.md)
