TreeNode = xInfo.rootNode(); TreeNode = TreeNode.AOTfindChild("Queries"); TreeNode.AOTadd(NewQueryName);