4D Language Commands by theme XML DOMVersion: 21 R3XML DOMDOM Append XML child node ( elementRef : Text ; childType : Integer ; childValue : any ) : Text DOM Append XML element ( targetElementRef : Text ; sourceElementRef : Text ) : Text DOM CLOSE XML ( elementRef : Text ) DOM Count XML attributes ( elementRef : Text ) : Integer DOM Count XML elements ( elementRef : Text ; elementName : Text ) : Integer DOM Create XML element ( elementRef : Text ; xPath : Text {; ...(attribName : Text ; attrValue : any )} ) : Text DOM Create XML element arrays ( elementRef : Text ; xPath : Text {; ...(attribNamesArray : Text array ; attribValuesArray : Text array)} ) : Text DOM Create XML Ref ( root : Text {; nameSpace : Text} {; ...(nameSpaceName : Text ; nameSpaceValue : Text)} ) : Text DOM EXPORT TO FILE ( elementRef : Text ; filePath : Text ) DOM EXPORT TO VAR ( elementRef : Text ; vXmlVar : Text, Blob ) DOM Find XML element ( elementRef : Text ; xPath : Text {; arrElementRefs : Text array} ) : Text DOM Find XML element by ID ( elementRef : Text ; id : Text ) : Text DOM Get first child XML element ( elementRef : Text {; childElemName : Text {; childElemValue : any}} ) : Text DOM Get last child XML element ( elementRef : Text {; childElemName : Text {; childElemValue : any}} ) : Text DOM Get next sibling XML element ( elementRef : Text {; siblingElemName : Text {; siblingElemValue : any}} ) : Text DOM Get parent XML element ( elementRef : Text {; parentElemName : Text {; parentElemValue : any}} ) : Text DOM Get previous sibling XML element ( elementRef : Text {; siblingElemName : Text {; siblingElemValue : any}} ) : Text DOM Get root XML element ( elementRef : Text ) : Text DOM GET XML ATTRIBUTE BY INDEX ( elementRef : Text ; attribIndex : Integer ; attribName : Variable ; attribValue : Variable ) DOM GET XML ATTRIBUTE BY NAME ( elementRef : Text ; attribName : Text ; attribValue : Variable ) DOM GET XML CHILD NODES ( elementRef : Text ; childTypesArr : Integer array ; nodeRefsArr : Text array ) DOM Get XML document ref ( elementRef : Text ) : Text DOM Get XML element ( elementRef : Text ; elementName : Text ; index : Integer {; elementValue : Variable {; attrNames : Text array {; attrValues : Text array }}}) : Text DOM GET XML ELEMENT NAME ( elementRef : Text ; elementName : Variable ) DOM GET XML ELEMENT VALUE ( elementRef : Text ; elementValue : Variable, Field {; cDATA : Variable, Field} ) DOM Get XML information ( elementRef : Text ; xmlInfo : Integer ) : Text DOM Insert XML element ( targetElementRef : Text ; sourceElementRef : Text ; childIndex : Integer ) : Text DOM Parse XML source ( document : Text {; validation : Boolean {; dtd : Text }} ) : TextDOM Parse XML source ( document : Text {; validation : Boolean {; schema : Text }} ) : Text DOM Parse XML variable ( variable : Blob, Text {; validation : Boolean {; dtd : Text }} ) : TextDOM Parse XML variable ( variable : Blob, Text {; validation : Boolean {; schema : Text}} ) : Text DOM REMOVE XML ATTRIBUTE ( elementRef : Text ; attribName : Text ) DOM REMOVE XML ELEMENT ( elementRef : Text ) DOM SET XML ATTRIBUTE ( elementRef : Text ; attribName : Text ; attrValue : any {; ...(attribName : Text ; attrValue : any)} ) DOM SET XML DECLARATION ( elementRef : Text ; encoding : Text {; standalone : Boolean {; indentation : Boolean}} ) DOM SET XML ELEMENT NAME ( elementRef : Text ; elementName : Text ) DOM SET XML ELEMENT VALUE ( elementRef : Text {; xPath : Text}; elementValue : any {; *} )