---
title: "localName(forName:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/xmlnode/localname(forname:)"
---

# localName(forName:)

Returns the local name from the specified qualified name.

## Declaration

```swift
class func localName(forName name: String) -> String
```

## Parameters

- `name`: A string that is a qualified name.

## Discussion

Discussion For example, if the qualified name is “bst:title”, this method returns “title”.

## See Also

### Related Documentation

- [predefinedNamespace(forPrefix:)](foundation/xmlnode/predefinednamespace(forprefix:).md)

### Managing Namespaces

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