Static XML datasource - drunk on backslashes
This is an open discussion with 7 replies, filed under General.
Search
Confirmed.
Would you please post this issue on the bug tracker?
Sure, posted as Bug #393. Cheers.
Thanks for the report, we’ll look at putting in a fix for 2.2.
Hi,
I have just created a static xml datasource with this xml:
<link-desc> <page id="2">test description</page> <page id="3">description</page> <page id="10">description</page> <page id="11">description</page> <page id="5">description</page> <page id="4">description</page> <page id="8">description</page> <page id="12">description</page> <page id="13">description</page> <page id="6">description</page> <page id="7">description</page> </link-desc>
The xml is added at the very top of the <data>
element looking like this with a strange indentation:
<link-desc> <page id=\"2\">test description</page> <page id=\"3\">description</page> <page id=\"10\">description</page> <page id=\"11\">description</page> <page id=\"5\">description</page> <page id=\"4\">description</page> <page id=\"8\">description</page> <page id=\"12\">description</page> <page id=\"13\">description</page> <page id=\"6\">description</page> <page id=\"7\">description</page> </link-desc>
And on the front end I get a loadXML()
error. Is this just me?
EDIT: You can't see it but there is backslashes before the id
double quotes
can you edit your post and escape any backslashes you have in the code block, then they will show up.
Pull from integration, I've added some fixes in 2.2.1 for Static DS's
designermonkey: done!
brendo: Thanks, I ended up formating my xml differently, just wanted to point this out
Create an account or sign in to comment.
When saving something in a static XML datasource, Symphony is a little over-zealous with adding backslashes. When I save this:
I get this:
Fair enough, but when I click save again I get this:
and then:
and so on. Can someone confirm this is a bug? I ended up getting around it by using the ' HTML entity, but it would be nice for that to handled in a friendlier way…