Load and learn root, element and attribute tags from first two rows
Build xml and write to file specified as second argument