Hola Kernel, creo que esta relacionado con esto en la documetación:


https://www.postgresql.org/docs/10/functions-xml.html#FUNCTIONS-PRODUCING-XML


Element and attribute names that are not valid XML names are escaped by replacing the offending characters by the sequence|_x/|HHHH|/_|, where/|HHHH|/is the character's Unicode codepoint in hexadecimal notation. For example:

SELECT xmlelement(name "foo$bar", xmlattributes('xyz' as "a&b"));

            xmlelement
----------------------------------
 <foo_x0024_bar a_x0026_b="xyz"/>



Saludos


El 21-12-18 a las 04:47, Kernel escribió:
Hola,

Estoy generando un xml y me cambia el nombre del tag, dir_formato_xsl lo cambia y pone dir_formato_x005F_xls, ¿hay alguna forma de evitarlo?



Sentencia:
XMLELEMENT(name dir_formato_xsl,        '/u/formatos')

Resultado:
<dir_formato_x005F_xsl>/u/formatos</dir_formato_x005F_xsl>


Gracias

Reply via email to