Hi all,
There is an issue a can't find a solution to. I have searched the archive
and other sources without success, meaning the issue is probably an issue
only to me.
Is there a way to add a CDATA content using SQL XML functions?
The program I am working on creates an XML body content for an HTTP request
to call a provider's API via HTTPCLOBVERBOSE function from
systoools library.
To create the XML body I add lines like this:
xmlelement(name "RagioneSociale", trim(bor.ORAGDE))
to an SQL xmlserialize select. If the database field contains the ampersand
symbol (' F.LLI COMENSOLI & OLIVARI SAS') the result is this:
<RagioneSociale>F.LLI COMENSOLI & OLIVARI SAS</RagioneSociale>
meaning the SQL functions for XML already translate the invalid XML
characters.
Now, when the call is made, the API rejects the XML as invalid.
If the very same request with the very same body is done through Postman,
it works, because I discovered it translates the & entity into %26.
Instead of focusing on & symbol only, I thought the easiest solution is to
embed these few database fields into a CDATA section so that the final line
should look like this:
<RagioneSociale><![CDATA[F.LLI COMENSOLI & OLIVARI SAS]]></RagioneSociale>
but I don't know how.
I can't manually concatenate the database field with the CDATA section,
because < and > signs will be automatically translated in their entity
counterparts as well, and an XMLCDATA function or similar is not available
on the system (or on my system).
I would like to avoid the use of %scanrpl function because when it comes to
applying to a long varchar field it takes a lot to execute.
Would you have any suggestion to cope with this?
Thank you very much
Link: [1]canonical
Link: [2]Feed Atom Gmail (alternate)
Link: [3]preload
Link: [4]preload
Link: [5]preload
Link: [6]preload
IFrame: [7]embedded_data_iframe
[8][ Visualizzazione HTML di base ]
Devi aver attivato JavaScript per utilizzare Gmail nella visualizzazione
standard. Tuttavia, JavaScript sembra essere disattivato o non supportato
dal tuo browser. Per utilizzare la visualizzazione standard, attiva
JavaScript modificando le impostazioni del browser, quindi [9]riprova.
Per utilizzare la visualizzazione HTML di base di Gmail, che non richiede
JavaScript, [10][ fai clic qui ] .
Se vuoi visualizzare Gmail su un telefono cellulare o un dispositivo
simile [11][ fai clic qui ] .
Caricamento di Gmailâ?¦
Caricamento visualizzazione standard in corso | [12][Â Carica HTML di
base ] (per connessioni lente)
L'operazione sta impiegando più tempo del solito. [13]Prova a ricaricare
la pagina.
Se non funziona, puoi:
 1. Se la tua connessione è lenta, prova [14][ visualizzazione HTML di
base ] .
 2. Per ulteriori consigli per la risoluzione dei problemi, visita il
[15]Centro assistenza.
[16]_____________________
References
Visible links
1.
https://mail.google.com/mail/
2. file:///tmp/feed/atom
3. file:///_/scs/mail-static/_/js/k=gmail.main.it.V0WNsaRCvnA.O/am=1-vvSXgg-CLwZWcENAAwPoBTqdI-wH9RStN_eCT8HpMH4CEGHoD9D-oDAAAAAAAAAAAAAAAAAACAPSBDJQ/d=1/im=1/dg=0/ct=zgms/rs=AHGWq9DxCnvb1kXYmPeMm94bc1yCSj78aQ/m=b
4. file:///_/scs/mail-static/_/js/k=gmail.main.it.V0WNsaRCvnA.O/am=1-vvSXgg-CLwZWcENAAwPoBTqdI-wH9RStN_eCT8HpMH4CEGHoD9D-oDAAAAAAAAAAAAAAAAAACAPSBDJQ/d=1/exm=b/ed=1/im=1/dg=0/ct=zgms/rs=AHGWq9DxCnvb1kXYmPeMm94bc1yCSj78aQ/m=a
5. file:///_/scs/mail-static/_/js/k=gmail.main.it.V0WNsaRCvnA.O/am=1-vvSXgg-CLwZWcENAAwPoBTqdI-wH9RStN_eCT8HpMH4CEGHoD9D-oDAAAAAAAAAAAAAAAAAACAPSBDJQ/d=1/exm=a,b/ed=1/im=1/dg=0/ct=zgms/rs=AHGWq9DxCnvb1kXYmPeMm94bc1yCSj78aQ/m=m,m_i,i20jfd,lKrWxc,hkjXJ,gYOl6d,HXLjIb,DL8jZe,xaQcye,oRmHt,E1P0kd,pE92lb,v2eEBc
6. file:///_/scs/mail-static/_/js/k=gmail.main.it.V0WNsaRCvnA.O/am=1-vvSXgg-CLwZWcENAAwPoBTqdI-wH9RStN_eCT8HpMH4CEGHoD9D-oDAAAAAAAAAAAAAAAAAACAPSBDJQ/d=1/exm=DL8jZe,E1P0kd,HXLjIb,a,b,gYOl6d,hkjXJ,i20jfd,lKrWxc,m,m_i,oRmHt,pE92lb,v2eEBc,xaQcye/ed=1/im=1/dg=0/ct=zgms/rs=AHGWq9DxCnvb1kXYmPeMm94bc1yCSj78aQ/m=sps,l,spit,t,anc
7.
https://mail.google.com/mail/u/1/data?sw=2&token=%5B%22cftp%22,%22fa3f920a35%22,%22gmail_fe_200520.12_p2%22,%224xZtFcmMfDU-lL0gGe71dQ%5Cu003d%5Cu003d%22,%226969,7418,7731,7708,6804,7465,7164,7641,7414,7468,7779,7467,7496,7158,7416,7332,7569,7591,7030,7711,6929,7725,7680,7720,7189,7718,7172,7419,7784,7113,7558,7518,7348,7772,7639,7278,7607,7068,7636,7565,7424,7027,7443,6984,7016,7763,7407,7495,7584,7236,7546,7393,7500,6792,7018,7433,7156,7714,7774,7654,7403,7150,7592,7734,7137,6999,7676,6807,7632,7618,7609,7650%22,1%5D&dilte=0&mme=0&gme=1&sme=0
9. file:///tmp/
13.
https://mail.google.com/mail/u/1/?sw=2
15.
https://support.google.com/mail/answer/8767?src=sl&hl=it
As an Amazon Associate we earn from qualifying purchases.