Re: cambio de nombre de tag _x005F

From: Anthony Sotolongo <asotolongo(at)gmail(dot)com>
To: Kernel <jucabapa(at)gmail(dot)com>, Ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: cambio de nombre de tag _x005F
Date: 2018-12-21 18:38:36
Message-ID: 7418ffd8-95cb-9e20-67c1-9ceb59a6bcbf@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

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
>

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Ivan Perales M. 2018-12-23 05:19:49 Instalación Automatizada
Previous Message Alvaro Herrera 2018-12-21 14:17:48 Re: Valor de campo no se actualiza en trigger