---
title: xmlString
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmlnode/xmlstring
---

# xmlString

Returns the string representation of the receiver as it would appear in an XML document.

## Declaration

```swift
var xmlString: String { get }
```

## Discussion

Discussion The returned string includes the string representations of all children. This method invokes xmlString(options:) with an options argument of NSXMLNodeOptionsNone.

## See Also

### Emitting Node Content

- [xmlString(options:)](foundation/xmlnode/xmlstring(options:).md)
- [canonicalXMLStringPreservingComments(_:)](foundation/xmlnode/canonicalxmlstringpreservingcomments(_:).md)
- [description](foundation/xmlnode/description.md)
