---
title: localName
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmlnode/localname
---

# localName

Returns the local name of the receiver.

## Declaration

```swift
var localName: String? { get }
```

## Return Value

Return Value A string containing the local name of the receiver.

## Discussion

Discussion The local name is the part of a node name that follows a namespace-qualifying colon or the full name if there is no colon. For example, “chapter” is the local name in the qualified name “acme:chapter”.

## See Also

### Managing Namespaces

- [localName(forName:)](foundation/xmlnode/localname(forname:).md)
- [prefix](foundation/xmlnode/prefix.md)
- [prefix(forName:)](foundation/xmlnode/prefix(forname:).md)
