Updated logic for XML parsing and dynamic checkbox

Working on applying the values.
This is just a prototype.