|
|
|
|
Devuelve el resultado de una consulta de cálculo XPath. Esta consulta se ejecutó con XMLExecuteXPath.
// Load the XML file MyDoc is string MyDoc = fLoadText("example.xml") // Text of query : Find the Index tag XPathQuery is string = "Help/Function/Index" // Create the document XMLDocument("Example", MyDoc) IF ErrorOccurred = True THEN Error("the file is not in XML format") RETURN END b is boolean b = XMLExecuteXPath("Example", XPathQuery) // Is it a calculation query? IF b = True AND XMLOut("Example") = True THEN // The calculation result is as follows Trace("XMLResult = " + XMLResult("Example")) END // Is it a selection XPath query? IF XMLFound("Example") = True THEN // Browse the result selection WHILE XMLFound("Example") = True Trace(XMLPath("Example")) XMLNext("Example") END // Browse completed, end the query XMLCancelSearch("Example") END
Sintaxis
<Result> = XMLResult(<XML document>)
<Result>: El tipo correspondiente al resultado de la consulta XPath Resultado de la consulta de cálculo XPath ejecutada por XMLExecuteXPath. <XML document>: Cadena de caracteres Nombre del XML Document utilizado. Esta Document fue creada por xmlDocument. Clasificación Lógica de negocio / UI: Lógica de negocio
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|