evaluate
Class: matlab.io.xml.xpath.Evaluator
Namespace: matlab.io.xml.xpath
Syntax
result = evaluate(evaluatorObj,xpExpr,xmlFilePath)
result = evaluate(evaluatorObj,xpExpr,xmlFilePath,resType)
result = evaluate(evaluatorObj,xpExpr,xmlFilePath,allowDoctype)
result = evaluate(evaluatorObj,xpExpr,xmlFilePath,resType,allowDoctype)
result = evaluate(evaluatorObj,xpExpr,ctxNode)
result = evaluate(evaluatorObj,xpExpr,ctxNode,resType)
Description
evaluates the specified XPath expression in the context of the specified XML file and returns
an object whose type is determined by the XPath expression.result = evaluate(evaluatorObj,xpExpr,xmlFilePath)
returns the specified result type.result = evaluate(evaluatorObj,xpExpr,xmlFilePath,resType)
specifies whether the XML file will be parsed if it contains a document type definition
(DTD).result = evaluate(evaluatorObj,xpExpr,xmlFilePath,allowDoctype)
returns the specified result type and specifies whether the XML file will be parsed if it
contains a document type definition (DTD).result = evaluate(evaluatorObj,xpExpr,xmlFilePath,resType,allowDoctype)
evaluates the specified XPath expression in the context of the parsed document node specified
by result = evaluate(evaluatorObj,xpExpr,ctxNode)ctxNode and returns an object whose type is determined by the XPath
expression.
evaluates the specified XPath expression in the context of the parsed document node specified
by result = evaluate(evaluatorObj,xpExpr,ctxNode,resType)ctxNode and returns the specified result type.