Skip to content

h2rd/ppxml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ppxml

Command-line tool to validate and pretty-print XML.

Setup

# Install through pip
pip install ppxml

# Install through git
pip install git+https://github.com/h2rd/ppxml

# or without cache
cd /tmp
git clone https://github.com/h2rd/ppxml
cd ppxml
python setup.py install

Examples

Just prettify and colorize xml code:

curl http://feeds.bbci.co.uk/news/rss.xml | ppxml

Use xpath for get some elements:

curl http://feeds.bbci.co.uk/news/rss.xml | ppxml -x "//item"

Use xpath for get deeper elements:

curl http://feeds.bbci.co.uk/news/rss.xml | ppxml -x "//item/title"

About

Command-line tool to validate and pretty-print XML.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages