---
title: objectValue
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmlnode/objectvalue
---

# objectValue

Returns the object value of the receiver.

## Declaration

```swift
var objectValue: Any? { get set }
```

## Return Value

Return Value The object value of the receiver, which may be the same as the value returned by stringValue. For nodes without content (for example, document nodes), this method returns the string value, or an empty string if there is no string value.

## See Also

### Managing XML Node Objects

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