-
June 2nd, 2007, 02:46 #11
- Join Date
- Feb 2006
- Location
- Fairfax County, Virginia
- Posts
- 499
The / character is not by default defined in a character entity in XML. In fact, there are only five defaults: " ' & < >
You can (should be able to) obtain the / character using the numeric entity reference, using its Unicode value, like this: &#47;
It's also possible that the problem occurs when moving over to the LUA side of things. The documentation doesn't say how the XML is parsed into the script environment when the relevant LUA script is executed, and it's possible that the value assigned to <i>name</i> gets picked directly from the XML and is used as an unquoted literal that gets tokenized. If that's the case, then using the XML escape shown above may not help.
In any case, it's probably a good idea to avoid using any non-alphanumeric character for any XML token, including the values assigned to attributes. (Data contained within tags is another matter, although we already know that you have to put < and > inside any inline LUA scripts.) Using "magic_resonance" or "magicresonance" would be a solution.
-
June 2nd, 2007, 02:49 #12
- Join Date
- Mar 2006
- Location
- Canada
- Posts
- 66
Thanks muchly for the XML and Lua info, gentlemen.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks