XML Cleaner is a command line utility to filter and validate XML files. It supports removal of superfluous XML namespaces among other features.
Command line options for XML Cleaner version 0.2.1 beta:
Usage: xmlclean [-o OUTFILE] OPTIONS [INFILE] Reads (with optional validation) and filters XML file. By default reads stdin and writes to stdout, what can be modified by INFILE and OUTFILE arguments COMMAND LINE OPTIONS Boolean options (denoted by *) can be optionally followed with 0 or 1, without space (1 is default) Misc: -o FILE Output to FILE instead of stdout -u* Remove unused namespace declarations -x* Output XML decl (default: true) -S* Output standalone="yes" (default: false) [MAY CHANGE IN FUTURE] -d* Output DTD (default: true) -C* Remove all comments (default: true) -qq Use double quotes for quoting (default) -qa Use apostrophes for quoting Whitespace: -w Preserve all whitespace (default) -wi Remove ignorable whitespace XML features: -s URI Set XML parser feature specified by the URI -r URI Reset XML parser feature specified by the URI -V* Validate XML against DTD (default: don't validate) -X* Load external entities (default: on) [-X0 DOES NOT WORK YET] Empty tags output: -ex <x></x> -e <x/> (default) -es <x /> -en Output line feed (\n) before slash -er Output carriage return (\r) before slash -ern Output \r\n before slash -enr Output \n\r before slash Help: -h|-help This help message -v|-version Output program version
No Comments/Trackbacks/Pingbacks for this post yet...
Recently ||