# Titanium.XML.Attr

> Represents an attribute of an [Element](https://titaniumsdk.com/docs/sdk/Titanium.XML.Element.md).

- Source: https://titaniumsdk.com/docs/sdk/13.1.0/Titanium.XML.Attr
- Titanium SDK version: 13.1.0
- Kind: proxy
- Platforms: Android, iPhone, iPad, macOS
- Since: Titanium SDK Android 0.9, iPhone 0.9, iPad 0.9, macOS 9.2.0
- Extends: Titanium.XML.Node
- Inheritance: Titanium.XML.Node > Titanium.Proxy

Implements the [DOM Level 2 API](https://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-637646024) on
Android and iOS.

## Properties

### name

- Type: String
- Platforms: Android, iPhone, iPad, macOS
- Permission: read-only

Attribute name

### ownerElement

- Type: Titanium.XML.Element
- Platforms: Android, iPhone, iPad, macOS
- Permission: read-only

The [Titanium.XML.Element](https://titaniumsdk.com/docs/sdk/Titanium.XML.Element.md) to which the attribute belongs.

### specified

- Type: Boolean
- Platforms: Android, iPhone, iPad, macOS
- Permission: read-only

True if this attribute was explicitly given a value in the instance document, false otherwise.

### value

- Type: String
- Platforms: Android, iPhone, iPad, macOS

The attribute value as a string.

## Inherited members

44 members are inherited. Each is documented on the type that declares it.

- [Titanium.Proxy](https://titaniumsdk.com/docs/sdk/13.1.0/Titanium.Proxy.md): `addEventListener`, `apiName`, `applyProperties`, `bubbleParent`, `fireEvent`, `lifecycleContainer`, `removeEventListener`
- [Titanium.XML.Node](https://titaniumsdk.com/docs/sdk/13.1.0/Titanium.XML.Node.md): `ATTRIBUTE_NODE`, `CDATA_SECTION_NODE`, `COMMENT_NODE`, `DOCUMENT_FRAGMENT_NODE`, `DOCUMENT_NODE`, `DOCUMENT_TYPE_NODE`, `ELEMENT_NODE`, `ENTITY_NODE`, `ENTITY_REFERENCE_NODE`, `NOTATION_NODE`, `PROCESSING_INSTRUCTION_NODE`, `TEXT_NODE`, `appendChild`, `attributes`, `childNodes`, `cloneNode`, `firstChild`, `hasAttributes`, `hasChildNodes`, `insertBefore`, `isSupported`, `lastChild`, `localName`, `namespaceURI`, `nextSibling`, `nodeName`, `nodeType`, `nodeValue`, `normalize`, `ownerDocument`, `parentNode`, `prefix`, `previousSibling`, `removeChild`, `replaceChild`, `text`, `textContent`

---

- This corpus documents Titanium SDK 13.4.1. Anything here that does not name a version describes 13.4.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

