IXMLDOMNamedNodeMap.removeQualifiedItem (Visual Basic .NET)

The removeQualifiedItem method removes the attribute with the specified namespace and attribute name.

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

Arguments

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 Value

Returns the attribute node removed, or NULL if no node was removed.

Remarks

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

Example

The following example uses the removeQualifiedItem method to remove the attribute node named "src" from the specified element node.

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")

' Remove an attribute named "src" from the first element
' named "media".
NodeList = Playlist.getElementsByTagName("media")
oNamedNodeMap = NodeList.item(0).attributes
nodeAtt = oNamedNodeMap.removeQualifiedItem("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

Reference

IXMLDOMNamedNodeMap Object (Visual Basic .NET)

IXMLDOMNode Object (Visual Basic .NET)

Concepts

XML DOM Methods (Visual Basic .NET)