Back to Aurora Vision Library website

You are here: Start » Function Reference » All Functions » Xml » Xml_SelectMultipleAttributes_AsBools

Xml_SelectMultipleAttributes_AsBools


This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Header: STD.h
Namespace: avl
Module: FoundationLite

Selects attributes from the XML tree using XPath request.

Syntax

void avl::Xml_SelectMultipleAttributes_AsBools
(
	const avl::XmlNode& inNode,
	const atl::String& inXPath,
	atl::Array<atl::String>& outAttributesNames,
	atl::Array<bool>& outAttributesValues
)

Parameters

Name Type Default Description
Input value inNode const XmlNode& Source node.
Input value inXPath const String& XPath criteria.
Output value outAttributesNames Array<String>& Found attributes names.
Output value outAttributesValues Array<bool>& Found attributes values as bool.

Description

Filter finds nodes using provided XPath query. Found nodes' attributes are converted to Bool type. Filter checks only first character of selected attribute. Characters Y, y, T, t, 1 will be parsed as True value. Value False will be returned if one of characters N, n, F, f, 0 will be found. If other character is found default value is returned. If no attributes were selected empty array is returned.

See Also