Auxiliary methods

These methods deal with some auxiliary tasks like copying the node content and retrieving various information about the node.

clone()

This method returns a copy of the referenced node. It has a single parameter of the BOOLEAN data type. If the parameter is set to TRUE, the node is copied with all its children. If it is set to FALSE, the children are not copied.

LET new_node = xmlnode_var.Clone(0)

toString()

This method returns the referenced node in the form of a character string. In this way you can assign the contents of XMLNODE variables to other 4GL variables.

LET str = xmlnode_var.ToString()

defaultNamespace()

This method returns true if the specified namespace is the default namespace for the referenced XMLNODE. It accepts a single parameter of a character data type which is the namespace in question. It returns TRUE, if the specified namespace is the default one, otherwise it returns FALSE.

LET xmlnodelist_var = xmlnode_var.DefaultNamespace("namespace")

getOwnerDocument()

This method returns an XMLDOCUMENT which contains the XMLNODE associated with the variable. E.g.:

LET nwe_xml_doc = xmlnode_var.GetOwnerDocument()

 

Contact Us

Privacy Policy

Copyright © 2026 Querix, (UK) Ltd.