GetElementById()

XmlDocument::GetElementById(String) method

Returns the XmlElement with the specified ID.

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

Arguments

ParameterTypeDescription
elementIdStringThe attribute ID to match.

Return Value

The XmlElement with the matching ID or nullptr if no matching element is found.

See Also