Línguagem 4D Comandos XML DOMVersão: 20 R10 BETA XML DOMDOM Append XML child node ( refElemento ; tipoFilho ; valorFilho ) : Text DOM Append XML element ( refElementoTarget ; refElementoFonte ) : Text DOM CLOSE XML ( refElemento ) DOM Count XML attributes ( refElemento ) : Integer DOM Count XML elements ( refElemento ; nomeElemento ) : Integer DOM Create XML element ( refElemento ; xRota {; nomeAtrib ; valorAtrib} {; nomeAtrib2 ; valorAtrib2 ; ... ; nomeAtribN ; valorAtribN} ) : Text DOM Create XML element arrays ( arrayNomesAtrib ; xRota {; atribNomesArray ; atribValoresArray} {; atribNomesArray2 ; atribValoresArray2 ; ... ; atribNomesArrayN ; atribValoresArrayN} ) : Text DOM Create XML Ref ( raiz {; nomeEspaço} {; nSNome ; nSValor} {; nSNome2 ; nSValor2 ; ... ; nSNomeN ; nSValorN} ) : Text DOM EXPORT TO FILE ( refElemento ; viaArquivo ) DOM EXPORT TO VAR ( refElemento ; vXMLVar ) DOM Find XML element ( refElemento ; xPath {; arrRefElementos} ) : Text DOM Find XML element by ID ( refElemento ; id ) : Text DOM Get first child XML element ( refElemento {; nomElemFilho {; valorElemFilho}} ) : Text DOM Get last child XML element ( refElemento {; nomElemFilho {; valorElemFilho}} ) : Text DOM Get next sibling XML element ( refElemento {; nomeElemIrmao {; valorElemIrmao}} ) : Text DOM Get parent XML element ( refElemento {; nomeElemPai {; valorElemPai}} ) : Text DOM Get previous sibling XML element ( refElemento {; nomeElemIrmao {; valorElemIrmao}} ) : Text DOM Get root XML element ( refElemento ) : Text DOM GET XML ATTRIBUTE BY INDEX ( refElemento ; indexAtrib ; nomeAtrib ; valorAtrib ) DOM GET XML ATTRIBUTE BY NAME ( refElemento ; nomeAtrib ; valorAtrib ) DOM GET XML CHILD NODES ( elemRef ; arrTiposFilhos ; arrRefsNodos ) DOM Get XML document ref ( arrayNomesAtrib ) : Text DOM Get XML element ( refElemento ; nomeElemento ; index ; valorElemento ) : Text DOM GET XML ELEMENT NAME ( refElemento ; nomeElemento ) DOM GET XML ELEMENT VALUE ( refElemento ; valorElemento {; cDATA} ) DOM Get XML information ( refElemento ; xmlInfo ) : Text DOM Insert XML element ( tarfetElementRef ; sourceElementRef ; childIndex ) : Text [DOM Parse XML source ( documento {; validaçao {; dtd[DOM Parse XML variable ( variável {; validaçao {; dtdDOM REMOVE XML ATTRIBUTE ( elementoRef ; nomeAtrib ) DOM REMOVE XML ELEMENT ( refElemento ) DOM SET XML ATTRIBUTE ( refElemento ; nomeAtrib ; valorAtrib {; nomeAtrib2 ; valorAtrib2 ; ... ; nomeAtribN ; valorAtribN} ) DOM SET XML DECLARATION ( refElemento ; codificaçao {; autonomo {; recuo}} ) DOM SET XML ELEMENT NAME ( refElemento ; nomeElemento ) DOM SET XML ELEMENT VALUE ( refElemento {; xRota}; valorElemento {; *} )