Skip to main content
Version: 25.2

treeInputFormat

  • global property (STTreeNode.xmodule)
 The treeInputFormat

global property is a property list which controls certain aspects of the way XML text is converted into a tree.

  • keys include:
    • alwaysJoinText which defines whether text nodes are combined automatically whenever a change is made to a tree that results in two text nodes adjacent to each other. Setting it to false allows sequential text nodes to be present in trees which may be useful for some applications, but may prevent Xpath node access from working properly. The default setting is true which is needed to ensure that node access (using a node or all nodes expression works reliably.
         set the treeInputFormat's alwaysJoinText to false
  • tidyXML When the treeInputFormat.tidyXML is set to true (it’s false initially), then SenseTalk will change malformed XML into valid XML when converting XML text into a tree. This may allow processing of some character references that otherwise would be treated as invalid. [new in 1.78]

  • Related: treeFormat