System::Xml::XmlNamedNodeMap class

XmlNamedNodeMap class

Represents a collection of nodes that can be accessed by name or index.

class XmlNamedNodeMap : public System::Collections::Generic::IEnumerable<SharedPtr<System::Xml::XmlNode>>

Methods

MethodDescription
begin() constGets iterator to the first element of collection.
cbegin() constGets iterator to the first element of collection.
cend() constGets iterator for a non-existent element behind the last element of the collection.
end() constGets iterator for a non-existent element behind the last element of the collection.
virtual get_Count()Returns the number of nodes in the XmlNamedNodeMap.
GetEnumerator() overrideProvides support for iteration over the collection of nodes in the XmlNamedNodeMap.
virtual GetNamedItem(String)Retrieves an XmlNode specified by name.
virtual GetNamedItem(String, String)Retrieves a node with the matching XmlNode::get_LocalName and XmlNode::get_NamespaceURI values.
virtual Item(int32_t)Retrieves the node at the specified index in the XmlNamedNodeMap.
virtual RemoveNamedItem(String)Removes the node from the XmlNamedNodeMap.
virtual RemoveNamedItem(String, String)Removes a node with the matching XmlNode::get_LocalName and XmlNode::get_NamespaceURI values.
virtual SetNamedItem(SharedPtr<XmlNode>)Adds an XmlNode using its XmlNode::get_Name value.

Typedefs

TypedefDescription
iteratorIterator type.
PtrAn alias for shared pointer to an instance of this class.

Remarks

Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

See Also