The <attr> attribute
NapaFlyboy
29 Mar 2013, 20:48What is the purpose of the <attr ... > ... </attr> tags I now see in the source code for the "grid_" and "pov_" properties of the GAME and OBJECT elements? It does not seem to be documented.
It's an alternative syntax for storing attributes, and is used when the attribute name itself would be invalid XML. For example, if an attribute name has a space, then <my attribute>value</my attribute> is not valid XML so Quest stores it using an attr tag instead.
If this is happening for underscores then that's a minor bug I've introduced in v5.4 - underscores are valid, so using attr isn't necessary here. But that said, it's not breaking anything at least!
If this is happening for underscores then that's a minor bug I've introduced in v5.4 - underscores are valid, so using attr isn't necessary here. But that said, it's not breaking anything at least!
NapaFlyboy
29 Mar 2013, 21:05I understand - just curious. Thanks for the quick replay. 