IXMLDOMNamedNodeMap.getQualifiedItem (Visual Basic .NET)

banner art

Previous Next

IXMLDOMNamedNodeMap.getQualifiedItem (Visual Basic .NET)

The getQualifiedItem method returns the attribute with the specified namespace and attribute name.

Syntax

  IXMLDOMNode = IXMLDOMNamedNodeMap
  .getQualifiedItem(
  strbaseName As String,
  strnamespaceURI As String
)

Parameters

strbaseName

[in] String specifying the base name of the attribute, without namespace qualification.

strnamespaceURI

[in] String specifying the namespace prefix that qualifies the attribute name. It does not matter what value is assigned to this String because the Windows Media Services SDK implementation of the XML DOM does not fully support namespaces.

Return Values

Returns the attribute node specified by the strbaseName and strnamespaceURI parameters. Returns NULL if the attribute is not in the collection or if the item is not an attribute.

Remarks

This method is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).

Example Code

The following example uses the getQualifiedItem method to retrieve an attribute node named "src" from a list of attributes contained in an IXMLDOMNamedNodeMap object.

Imports interop_msxml
Imports Microsoft.WindowsMediaServices.Interop

On Error GoTo Err

' Declare variables.
Dim Server As New WMSServerClass()
Dim Playlist As IXMLDOMDocument
Dim oNamedNodeMap As IXMLDOMNamedNodeMap
Dim NodeList As IXMLDOMNodeList
Dim nodeAtt As IXMLDOMAttribute

' Create a new playlist object.
Playlist = Server.CreatePlaylist

' Load a playlist.
Playlist.load("file://e:\wmpub\wmroot\simple.wsx")

' Retrieve an attribute named "src" from the first element
' named "media".
NodeList = Playlist.getElementsByTagName("media")
oNamedNodeMap = NodeList.item(0).attributes
nodeAtt = oNamedNodeMap.getQualifiedItem("src", "")
Exit Sub

Err:
' TODO: Handle errors.

Requirements

Reference: Add references to Microsoft.WindowsMediaServices and interop_msxml.

Namespace: Microsoft.WindowsMediaServices.Interop, interop_msxml.

Assembly: Microsoft.WindowsMediaServices.dll, interop_msxml.dll.

Library: WMSServerTypeLib.dll, msxml.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Previous Next