adding XML layout parsing and Java layout parsing