## XmlDocument::GetElementById method


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

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| elementId | String | ID-attributet att matcha. |

### ReturnValue

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

## Se även

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