Para cada tag que empieza por XML, se procesa emitiendo el mismo y su contenido.

1 xml.xml

Añadir elementos a una variable de tipo array.

<xml.xml encoding='encoding'>
    <xml.doc /> ?
</xml.xml>
Example
Copy
<xsql-script name='ejemplo_xml'>
    <body>
        <xml.xml encoding='utf-8'>
            <xml.doc>
                <xml.texto>
                    <xml.parrafo>Hola Mundo</xml.parrafo>
                </xml.texto>		
            </xml.doc>
        </xml.xml>
    </body>
</xsql-script>

Devuelve:

Copy
<?xml version='1.0' encoding='utf-8' ?>
<doc>
    <texto>
        <parrafo>Hola Mundo</parrafo>
    </texto>		
</doc>

Prefixes & namesapces

Prefixes in tag names are not allowed, so we cannot produce XML documents with custom namespaces using this tag.

For example, this is not allowd and will make the script execution to fail:

Copy
...
<xml.f:method>myMethodName</xml.f:method>
...