XmlNode.Item Property (String, String)

 

Gets the first child element with the specified LocalName and NamespaceURI.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

abstract Item : 
        localname:string *
        ns:string -> XmlElement with get
override Item : 
        localname:string *
        ns:string -> XmlElement with get

Parameters

localname
Type: System.String

The local name of the element.

ns
Type: System.String

The namespace URI of the element.

Property Value

Type: System.Xml.XmlElement

The first XmlElement with the matching localname and ns. . It returns a null reference (Nothing in Visual Basic) if there is no match.

This property is a Microsoft extension to the Document Object Model (DOM).

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show: