invalid XML Document declaration

Hi All, 

My first post here :-) 

I'm getting double double quotes in the declaration section of the XML document I'm creating using XMLDocument_new action.

"<?xml version=""1.0"" encoding=""utf-8""?>

this makes my XML document invalid. 

this is what i have:



this gives me the following XML document after the save.



any idea? 


Solution

Hi Pim,

Be aware that OutSystems shows the double quotes in the debugger, if they're inside a Text Variable. They're not actually there though. So if you copy/paste from the debugger, you'll get the behaviour you are seeing. However, the double double quotes should not actually appear in output.

Solution

Kilian Hekhuis wrote:

Hi Pim,

Be aware that OutSystems shows the double quotes in the debugger, if they're inside a Text Variable. They're not actually there though. So if you copy/paste from the debugger, you'll get the behaviour you are seeing. However, the double double quotes should not actually appear in output.

Thnx! life can be so simple


Yup, it's something to be aware of. If you want to specifiy a single double quote inside a Text, you also use double double quotes, like this:

"It is called a ""double quote"""

This is converted to:

It is called a "double quote"