Add formatting options to command line
Use correct quotes for attributes
Properly escape attributes
Place dashed attributes names in quotes