---
title: isStandalone
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmldocument/isstandalone
---

# isStandalone

Sets a Boolean value that specifies whether the receiver represents a standalone XML document.

## Declaration

```swift
var isStandalone: Bool { get set }
```

## Parameters

- `standalone`: doc://com.apple.documentation/documentation/Swift/true if the receiver represents a standalone XML document, doc://com.apple.documentation/documentation/Swift/false otherwise.

## Discussion

Discussion A standalone document does not have an external DTD associated with it.

## See Also

### Managing Document Attributes

- [characterEncoding](foundation/xmldocument/characterencoding.md)
- [documentContentKind](foundation/xmldocument/documentcontentkind.md)
- [dtd](foundation/xmldocument/dtd.md)
- [mimeType](foundation/xmldocument/mimetype.md)
- [version](foundation/xmldocument/version.md)
