Schema for Interfaces - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: WLM Plus! General (/forumdisplay.php?fid=23) +----- Thread: Schema for Interfaces (/showthread.php?tid=95537) Schema for Interfaces by effection on 10-02-2010 at 11:06 AM
It seems to me this schema doc is pretty inaccurate and not very user friendly for checking against the schema in the end (every plus script i try to check fails for simple little things). code: As you can see in this code the types "LeftControl" and "RightControl" are in SEPARATE blocks "Choice". Now this is obviously inccorrect because you CAN have either LeftControl or RightControl or both within the "BottomBar" object and Plus parses it fine. Now the way that is laid out is fine because you can have both (they are in separate choice blocks) but when it comes to using this schema it messes up certain things (relating to my IDE for Plus! in the end) so this object should have the "Choice" tags removed. This is only one example which is making my life more difficult in making an Development Environment for everyone here. There are many more such as objects being marked as use="optional" or having a default attribute (makes them optional) or having no attribute (also makes them optional) when some are actually required elements (as far as i can remember). On top of this most complexTypes are using "sequence" tags which means, All types within the sequence must appear in the same order as defined within the schema. Now when Plus! parses a file it doesn't care what order they are in! At least on most objects it doesn't care. All of them should use "<all>" instead of "sequence" as it allows for any order. The reason i bring this up is that if i change these to be more inkeeping with what the actual Plus! engine does and then there is eventually a new update to the schema not taking into account my changes it will become a nightmare to go and change all of these again. It would be nice if someone with some xsd knowledge would help to go through and fix a lot of it but only if Patchou would commit these changes RE: Schema for Interfaces by matty on 10-08-2010 at 11:25 AM
Hey effection, RE: Schema for Interfaces by effection on 10-09-2010 at 04:20 PM I'll have another look at the XML and the C# files it produces this week and try to pick out other things. Basically i want to make sure that all required fields are definitely required. I have written a tool (based off xsd.exe) to do custom serialization on all optional fields so that if its the default value the xml doesn't get unnecessarily written to the file. For now it should be fine as long as the <choice> tags are fixed |