Skip to content

A mini library to generate xpaths in tree like json format from xmls

License

Notifications You must be signed in to change notification settings

MrBalum/xpath-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XPATH-Generator

This project is actually in Development and has an experimental state. Validate the Results against your xml files

Supported Formats

Actually this php library can only handle one xml file passed to stdin.

How To

Docker

If you want to use this little library as docker image so perfor

docker build -t xpathgenerator .

Now try to pass a xml file to the script using

cat your/file.xml | docker run --rm -i xpathgenerator

Local

If you want to use this little library on your local machine so perform cat your/file.xml | php main.php

Handling Output

To Handle the Output you can easily grep stdout. The Output will contain the xml tags in json format including value and the xpath.

Toughts

So feel free to fork this project and continue the work.

About

A mini library to generate xpaths in tree like json format from xmls

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •