## XmlElement::HasAttribute(String, String) method


Determina si el nodo actual tiene un atributo con el nombre local y el URI del espacio de nombres especificados.

```cpp
virtual bool System::Xml::XmlElement::HasAttribute(String localName, String namespaceURI)
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| localName | String | El nombre local del atributo a buscar. |
| namespaceURI | String | El URI del espacio de nombres del atributo a buscar. |

### ReturnValue

**true** if the current node has the specified attribute; otherwise, **false**.

## Ver también

* Class [String](../../../system/string/)
* Class [XmlElement](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlElement::HasAttribute(String) method


Determina si el nodo actual tiene un atributo con el nombre especificado.

```cpp
virtual bool System::Xml::XmlElement::HasAttribute(String name)
```


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| nombre | String | El nombre del atributo a buscar. Este es un nombre calificado. Se compara con el valor **get_Name** del nodo coincidente. |

### ReturnValue

**true** if the current node has the specified attribute; otherwise, **false**.

## Ver también

* Class [String](../../../system/string/)
* Class [XmlElement](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
