MIXmlNodeGetAttributeValue() 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

Retrieves the text associated with the specified name.

Syntax

MIXmlNodeGetAttributeValue( ByVal hXMLNode As MIXmlNode, 
	ByVal strAttributeName As String, pValue As String, 
	ByVal nLen As Integer ) As SmallInt

hXMLNode is the MIXmlNode object handle.

strAttributeName is a string specifying the name of the attribute.

pValue is a reference to a string that receives the node value of the specified attribute.

nLen is the size of the buffer referenced by pValue.

Return Value

Nonzero if successful; otherwise 0.

Description

MIXmlNodeGetAttributeValue() first finds out if there is a valid MIXmlNamedNodeMap object with the given node, hXMLNode. As it is stated in MIXmlGetAttributeList() function, this object only contains the nodes which can return attributes (Element, Entity, and Notation nodes). When there is a valid MIXmlNamedNodeMap object and the specified name is found in the object, its node value will fill in pValue.