---
title: nodePreserveAttributeOrder
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/xmlnode/options/nodepreserveattributeorder
---

# nodePreserveAttributeOrder

Requests that NSXMLNode preserve the order of attributes as in the source XML.

## Declaration

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

## 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)
- [nodePreserveAll](foundation/xmlnode/options/nodepreserveall.md)
- [nodePreserveCDATA](foundation/xmlnode/options/nodepreservecdata.md)
- [nodePreserveCharacterReferences](foundation/xmlnode/options/nodepreservecharacterreferences.md)
