System::Xml::XmlAttributeCollection class
Contents
[
Hide
]XmlAttributeCollection class
Represents a collection of attributes that can be accessed by name or index.
class XmlAttributeCollection : public System::Xml::XmlNamedNodeMap
Methods
Method | Description |
---|---|
Append(const SharedPtr<XmlAttribute>&) | Inserts the specified attribute as the last node in the collection. |
CopyTo(const ArrayPtr<SharedPtr<XmlAttribute>>&, int32_t) | Copies all the XmlAttribute objects from this collection into the given array. |
idx_get(int32_t) | Returns the attribute with the specified index. |
idx_get(const String&) | Returns the attribute with the specified name. |
idx_get(const String&, const String&) | Returns the attribute with the specified local name and namespace Uniform Resource Identifier (URI). |
InsertAfter(const SharedPtr<XmlAttribute>&, const SharedPtr<XmlAttribute>&) | Inserts the specified attribute immediately after the specified reference attribute. |
InsertBefore(const SharedPtr<XmlAttribute>&, const SharedPtr<XmlAttribute>&) | Inserts the specified attribute immediately before the specified reference attribute. |
Prepend(const SharedPtr<XmlAttribute>&) | Inserts the specified attribute as the first node in the collection. |
Remove(const SharedPtr<XmlAttribute>&) | Removes the specified attribute from the collection. |
RemoveAll() | Removes all attributes from the collection. |
RemoveAt(int32_t) | Removes the attribute corresponding to the specified index from the collection. |
SetNamedItem(SharedPtr<XmlNode>) override | Adds an XmlNode using its XmlNode::get_Name result. |
Typedefs
Typedef | Description |
---|---|
Ptr | An 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
- Class XmlNamedNodeMap
- Namespace System::Xml
- Library Aspose.PUB for C++