Posted July 16, 200817 yr It seems to me that all the configuration of my control4 system is in the /etc/DirectorState.xml file. However this file has some weird formatting issues. Some of the angle brackets are in regular ascii, while others (e.g. the ones in lighting scenes) are url escaped as > and <. Additionally there don't appear to be line breaks anywhere. If I added the appropriate indenting and removed these escapes (to make editing easier) would it break the file for my control4 system? Anyone tried doing this? --Mark
July 17, 200817 yr DirectorState.xml is written by director, for director.It's not recommended that you hand-edit the file.You break it, you bought it.RyanE
July 17, 200817 yr And yes, you would *definitely* break it if you un-escaped the XML-escaped device data.RyanE
July 18, 200817 yr Author I see. Looks like all and only the stuff in the <state> tags needs to be escaped. Other than that it doesn't look that fierce. Given the strength of the currently available xml libraries anyway. Has anyone tried writing their own editor before?
July 22, 200816 yr Author On a related note: Do the line break positions matter? There seems to be some pattern to them, but not an easy one to process. It looks to me like there are a bunch of tags that have newlines after them, but it'd require a tedious amount of regexp work to format a newly generated xml file that way. Just wondering if that's something that would break director, or if director uses a standard xml library that will parse out non-escaped newlines.
July 22, 200816 yr XML *should* work with extraneous line breaks and spacing, but again, your mileage may vary.RyanE
Archived
This topic is now archived and is closed to further replies.