资 源 简 介
The program reads xml document provided as input parameter or all documents if the input is a directory,
finds a specified tag, if a value for this tag is provided, compares the value of the found tag with the provided, if they match, create a new xml document containing complete list of tags and their values of the parent tag for one specified on input and all further parent tags without the content (to preserve the structure of the original document).
If the tag has been found multiple times, each element goes into a separate file. If no value for the tag has been provided, the comparison will be skipped, I mean, if the tag has been found, its block goes into the output file.
## Run: ##
The program can be run from command line or the processing module code can be used as a plugin.
run:
java -jar CutPatternBlock-0.0.1-SNAPSHOT.jar input_file_or_dir output_dir tag [value]
What is it useful for?
The code originally has been designed fo