Back to FabImage Studio website

You are here: Start » Filter Reference » System » Xml » Xml_SelectSingleNodeValue_AsBool

Xml_SelectSingleNodeValue_AsBool


Module: FoundationLite

Selects node from the XML tree using XPath request.

Name Type Description
Input value inNode XmlNode Source node.
Input value inXPath String XPath criteria.
Input value inDefault Bool* If no node was found default value will be used.
Output value outNode XmlNode? Found node.
Output value outNodeValue Bool Found node text as Boolean.

Description

Filter finds node using provided XPath query. Found node's value is converted to Bool type. Filter checks only first character of selected node's value. 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 node is found exception is thrown.

Remarks

Read more about how to handle XML in Working with XML Trees article.

Complexity Level

This filter is available on Advanced Complexity Level.

Filter Group

This filter is member of Xml_SelectNodeValues filter group.

See Also