## XmlDocument::GetElementById method


Returnerar [XmlElement](../../xmlelement/) med det angivna ID:t.

```cpp
virtual SharedPtr<XmlElement> System::Xml::XmlDocument::GetElementById(String elementId)
```


| Parameter | Type | Beskrivning |
| --- | --- | --- |
| elementId | String | Attributet ID att matcha. |

### ReturnValue

Det [XmlElement](../../xmlelement/) med matchande ID eller **nullptr** om inget matchande element hittas.

## Se även

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlElement](../../xmlelement/)
* Class [String](../../../system/string/)
* Class [XmlDocument](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Page for C++](../../../)
