MIXmlSelectNodes() function - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as an MIXmlNodeList object.

Syntax

MIXmlSelectNodes( ByVal hXMLNode As MIXmlNode, ByVal strPattern As String 
	) As MIXmlNodeList

hXMLNode is the MIXmlNode object handle.

strPattern is a string specifying an XPath expression.

Return Value

A handle to an MIXmlNodeList object. It is the collection of nodes selected by applying the given pattern-matching operation. If no nodes are selected, returns an empty collection. NULL is returned if it fails.

Description

MIXmlSelectNodes() is used to get a collection of matching nodes as an MIXmlNodeList object with the specified pattern-matching operation. The MIXmlSelectNodes() is similar to MIXmlSelectSingleNode() function, but returns a list of all of the matching nodes rather than the first matching node.

The caller has to dispose of the handle by calling MIXmlNodeListDestroy() procedure when the handle is no longer in use.