Forum Discussion
pixshatterer
9 years agoVisitor
"TheEndless" wrote:"pixshatterer" wrote:
I already tried, but it didn't work 😕 so I went looking around if escaping quotes would work and it did, so this was the solution:<MyComp
id="comp"
messages="["hi","hello","world","none"]"
/>
... which looks awful, but so far looks like the only way :v
Eep! Try flipping the quotes...<MyComp
id="comp"
messages='["hi", "hello", "world", "none"]'
/>
XML supports single and double quotes interchangeably when wrapping attribute values. Apparently the Roku SceneGraph parser doesn't...
Awesome! that worked! I'm familiar with the XML interchangeability of single/double quotes there, but after it failed when I tried the other way around - as you suggested too - I gave up on that.
Thanks!