generate sql of creating table by parsing xml.