Returns the child element with the given identifier.
[C#] In C#, this member is the indexer for the XmlContainer class.
[Visual Basic] Overloads Public Default ReadOnly Property Item( _ ByVal id As XmlIdent _ ) As XmlElement [C#] public XmlElement this[ XmlIdent id ] {get;} [C++] public: __property XmlElement* get_Item( XmlIdent* id ); [JScript] returnValue = XmlContainerObject.Item(id); -or- returnValue = XmlContainerObject(id);
[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.
The first child element with the given identifier.
This indexer returns the first child element that has the given identifier. If the element does not exist, it is created and added to the end of this element's child list.
It is only possible to access XmlElement child nodes with this indexer. To obtain other types of child nodes (such as text nodes) by identifier, use the GetNodes method.
XmlContainer Class | XmlContainer Members | System.Xml Namespace | XmlContainer.Item Overload List | Item | Item