Extracts the views from an XML and writes the Java code for further functionality