parsemainxcd.js: parse main.xcd and spit out all the properites.