XML processing for the command line