Skip to content

Script that generates report of the structure for an XML document with sample data from various places in the file.

License

Notifications You must be signed in to change notification settings

remmons/xml-feed-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xml feed report

This lightweight tool provides a detailed report of what data is an xml file. It validates its contents and shows every node that was seen and how many occurances with data it had. Finally, it outputs sample data from various places in the document.

Instructions

Prerequisites:

Install the dependencies:

npm install

Execute the bash script with intended file:

bash report.sh ~/Downloads/test.xml

Sample Output

Validating with XML Lint:
----------------------
No XML errors found.

Generating XML Report:
----------------------

 OUTPUT
 <node_name>  <total_nodes> / <total_nodes_with_data>
  - <random_sample_data>

 • response  1 / 0
   ○ row  1 / 0
     ■ row  7344 / 0
       ▫ yearstart  7344 / 7344
         - 2008
         - 2008
         - 2010
         - 2010
         - 2012
       ▫ yearend  7344 / 7344
         - 2008
         - 2008
         - 2010
         - 2010
         - 2012
       ▫ locationabbr  7344 / 7344
         - HI
         - MI
         - NC
         - UT
         - AR
       ▫ locationdesc  7344 / 7344
         - Hawaii
         - Michigan
         - North Carolina
         - Utah
         - Arkansas

About

Script that generates report of the structure for an XML document with sample data from various places in the file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published