frieze Posted July 16, 2008 Share Posted July 16, 2008 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 Link to comment Share on other sites More sharing options...
RyanE Posted July 17, 2008 Share Posted July 17, 2008 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 Link to comment Share on other sites More sharing options...
RyanE Posted July 17, 2008 Share Posted July 17, 2008 And yes, you would *definitely* break it if you un-escaped the XML-escaped device data.RyanE Link to comment Share on other sites More sharing options...
frieze Posted July 18, 2008 Author Share Posted July 18, 2008 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? Link to comment Share on other sites More sharing options...
frieze Posted July 22, 2008 Author Share Posted July 22, 2008 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. Link to comment Share on other sites More sharing options...
RyanE Posted July 22, 2008 Share Posted July 22, 2008 XML *should* work with extraneous line breaks and spacing, but again, your mileage may vary.RyanE Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.