--mark added, -e fixed.
support for -c with xml/txt added.