---
title: kind
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmlnode/kind-swift.property
---

# kind

Returns the kind of node the receiver is as a constant of type XMLNode.Kind.

## Declaration

```swift
var kind: XMLNode.Kind { get }
```

## Discussion

Discussion NSXMLNode objects can represent documents, elements, attributes, namespaces, text, processing instructions, comments, document type declarations, and specific declarations within DTDs. See Constants for a list of valid NSXMLNodeKind constants

## See Also

### Related Documentation

- [init(kind:)](foundation/xmlnode/init(kind:).md)

### Managing XML Node Objects

- [index](foundation/xmlnode/index.md)
- [level](foundation/xmlnode/level.md)
- [name](foundation/xmlnode/name.md)
- [objectValue](foundation/xmlnode/objectvalue.md)
- [stringValue](foundation/xmlnode/stringvalue.md)
- [setStringValue(_:resolvingEntities:)](foundation/xmlnode/setstringvalue(_:resolvingentities:).md)
- [setURI:](foundation/nsxmlnode-seturi.md)
- [uri](foundation/xmlnode/uri.md)
