Skip to content

tiran-manukyan/xml-data-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XML Data Handler

A console utility program that allows to find data from XML file.

Initial Data Example:

<node is-file="false">
    <name>/</name>
    <children>
        <child is-file="true">
            <name>file-776194140.xml</name>
        </child>
        <child is-file="false">
            <name>dir-2096609034</name>
        </child>
        <child is-file="false">
            <name>dir-721263753</name>
            <children>
                <child is-file="true">
                    <name>file-2033711217.xhtml</name>
                </child>
                <child is-file="false">
                    <name>dir-927762094</name>
                </child>
                <child is-file="true">
                    <name>file-25645735.java</name>
                </child>
            </children>
        </child>
    </children>
</node>

How to use the program

1. Run main.Main

Pass the following arguments:

-f <xml_file_path>
-s <search_input_template>
-S <search_input_regex>

Example:

 -f test-files.xml -s *.java
 -f xml-file.xml -S ".*?[a-z]{4}-\d+\.[a-z]+"

2. You can also build executable jar file using the following maven command.

mvn clean compile assembly:single

An example of running an executable jar file:

java -jar xml_data_handler.jar -f xml-file.xml -S ".*?[a-z]{4}-\d+\.[a-z]+"
java -jar xml_data_handler.jar -f xml-file.xml -s \".*xml\"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages