make.Xpath: Build a Xpath

Description Usage Arguments Value

View source: R/xml_utilities.R

Description

This function builds a Xpath to search nodes in HexSim xml files. It is used internally by hexSimR. When used in the LHS.scenarios function, it constructs the path "/.../name[text()='...']" when param_node is not NA, param_identifier is FALSE and is.LHS is TRUE. Addtional details on arguments are in the scenarios.batch.modifier.

Usage

1
2
3
4
5
6
7
8
make.Xpath(
  node_path,
  identifier,
  attrib,
  param_node = NA,
  param_identifier = FALSE,
  is.LHS = FALSE
)

Arguments

node_path

The node_path

identifier

The identifier of the node

attrib

Whether the identifier is an attribute

param_node

Whether the parameter is contained in an internal node

param_identifier

A character vector if the param has an identifier, FALSE otherwise

is.LHS

Whether the Xpath being built is for a LHS

Value

A character vector with the Xpath


carlopacioni/HexSimR documentation built on Nov. 28, 2020, 4:12 p.m.