Added some logic for parsing the xml file.

Need to finish the logic and add file/dir commands.