xml-blacklist - ruby task to strip nodes from xml documents

  •        6

```./filter_xml_dir OPTION...```Copy all files from one directory to another, stripping out specified XML nodes from each file in the process.All files from SOURCE will be processed and copied to DESTINATION. Unless `--no-recurse` is supplied, all subfolders willbe copied as well. Only folders with files in them will be copied. File types are not checked. Symlinks are copied intonormal files by default, but with `--symlink=link` the target will be relinked (without change) in DESTINATION, or with`--symlink=ignore` will be ignored completely.Files with duplicate names will be overwritten. If `--nuke` is supplied, the entire DESTINATION folder will be destroyedbefore rebuilding it; otherwise, non-duplicate files will be kept. If `--backup` is supplied and DESTINATION alreadyexists, it will first be renamed with a timestamp representing its modification time, and a new folder will be built.The BLACKLIST file should contain a list of node names to be removed, one name per line. In theory, other CSS selectorscan be used as well, but this has not been tested and should be used with caution.

Required arguments:
-s, --source=SOURCE The folder where unprocessed XML files are stored.
-d, --destination=DESTINATION The folder where processed XML files will be stored.
-b, --blacklist=BLACKLIST A text file containing names of XML nodes to be removed.
Optional arguments:
-k, --backup Will rename the DESTINATION folder before building another copy.
-n, --nuke Will destroy the DESTINATION folder completely before rebuilding it. (Does nothing if --backup is also supplied.)
-l, --symlink=ACTION The action to take with symbolic links. Can be one of:
  • file - (default) processes and copies the target files into the DESTINATION folder.
  • link - copies the links and leaves the target files untouched.
  • ignore - does not copy symlinks.
-R, --no-recurse Will not copy subfolders from SOURCE.
Other options:
-h, --help Show this message.

https://github.com/Datacom/xml-blacklist

Tags
Implementation
License
Platform

   




Related Projects

vim-olive - Vim Mode Line Verifier


Vim Mode Line Verifier

vim-mash - Motion Activated Search Highlighter for Vim


Motion Activated Search Highlighter for Vim

vim-grillz - Flash your wicked grillz!


Flash your wicked grillz!

vim-foist - Complete whole lines from any partial therein


Complete whole lines from any partial therein

vim-efmc - Vim Error Format Compiler


Vim Error Format Compiler


uzbl-utrs - mkng uzbl tlrbl


mkng uzbl tlrbl

toycsv - A toy CSV parser written in ruby + lexr + racc


A toy CSV parser written in ruby + lexr + racc

tiktok - TikTok provides a simple asynchronous timer object for VimL.


TikTok provides a simple asynchronous timer object for VimL.

tabby - Using Vim's Tabs the Right Way


Using Vim's Tabs the Right Way

SohiVila - GNU source-highlight Vim language


GNU source-highlight Vim language

SinTax - A DSL for generating Vim syntax highlighting files


A DSL for generating Vim syntax highlighting files

rkdots - Generate a graphviz visualisation of the given javascript statement.


Generate a graphviz visualisation of the given javascript statement.

RelNumBar - Show relativenumbers alongside normal numbers in Vim


Show relativenumbers alongside normal numbers in Vim

Punisher - Punisher hurts you where it hurts most - your time.


Punisher hurts you where it hurts most - your time.

noisy - Don't chat quietly (weechat channel noises)


Don't chat quietly (weechat channel noises)

newlisp-manual - Asciidoc version of the newLISP manual


Asciidoc version of the newLISP manual

Land-of-newLISP - Selected snippets from Land of Lisp rewritten in newLISP


Selected snippets from Land of Lisp rewritten in newLISP

Fossilise - Poor man's collaborative editing in Vim


Poor man's collaborative editing in Vim

firstly - Convert Between Numeric, Spelt, and Short & Long Ordinal Forms of Numbers


Convert Between Numeric, Spelt, and Short & Long Ordinal Forms of Numbers