WSO2 ESB turns my '&' into '&' when i launch a scheduled task, so link doesn't work

426 views Asked by At

Working with WSO2 ESB i try to save proxy service's xml with the correct character '&' instead of '&amp', but when i launch the task it always auto-saves file with '&amp'. In this way my link is always

"www.mysite.com/data?param1=myparam1&param2=myParam2"

instead of the correct working form,

"www.mysite.com/data?param1=myParam1&param2=myParam2"

I think to modify the messageFormatter in axis2.xml, but i don't know hot to solve it.

Any idea?

1

There are 1 answers

0
Quentin On

In XML, & indicates the start of a character reference.

& is the character reference for "an ampersand" and will be converted back into an ampersand when the XML is parsed.

&param2= is invalid XML and should cause an XML parser to abort with an exception.

If you have a problem, it is with the tool reading the XML, not the tool creating it.