36
Views
3
Comments
Solved
invalid XML Document declaration
Question

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? 


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
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.

UserImage.jpg
Pim van Westen

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


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

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"
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.