Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
local patientXML = recordXML:select("chargeTransaction/patient", true)

Node.firstChild()

USAGE

Select child node from the root XML node based on the XML pathSearch for the first XML element that meets to criteria passed into the function.

REQUIRED PARAMETERS

  • XMLNodeElement Name: The name of the root of XML nodeelement.

  • path: xml child node path

  • required: If 'required' is false and 'thisNode' is nil, the function returns nothing and exitsAttribute Name: The attribute name that you want to be found. Make sure to include the “@” prefix.

  • Attribute Value: The attribute value attached to the attribute name to be found.

RETURNS

  • The child node treefirst match for the XML element.

SAMPLE CODE

Code Block
local headerfirstElement = chargeTransaction.headersXMLRecord:firstChild("headerElement", "headerDefinition/systemIdentifier@AttributeName", "FELLAttributeValue")

Node.removeText()

USAGE

Keep the XML element but empty the XML element Text value

...