problems with characters in xml


I have a problem sending and opening an xml. In the xml I need you to appear:

"Comisiones por Captaci>#243;n"

but when I send it or open it I get "Comisiones por Captaci>#243;n"

I tried coding

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" ?>

Let's see if anyone can help me. Thanks and best regards

asked by Sergio Alcantara 06.03.2018 в 20:19

2 answers


Starting from what you want to be shown like this

"Comisiones por Captaci&gt;#243;n"

And we have or have 5 escape characters in xml:

The code should read like this:

Comisiones por Captaci&amp;gt;#243;n

To look like this ..

P.d. I hope it's what you're looking for. Greetings !!

answered by 09.03.2018 / 07:48

The html code you are using to represent accented is not the correct one


you must use &#243; , for example:

Comisiones por Captaci&#243;n

in this way, when it is represented, it will be shown:


Commissions for Recruitment

These are the html codes for accented words:

á = &#225;   

é = &#233;   

í = &#237;  

ó = &#243;

ú = &#250;    

ñ = &#241;

In this list you can see all the codes:

Table of HTML codes

answered by 06.03.2018 в 20:39