Skip to main content

XML (XPath, XSD, XSLT) Utilities

Project description

Python versions Documentation Status PyPI version

Xul is a set of XML scripts written in Python. Documentation can be found on Read The Docs.

Xul scripts

  • ppx: pretty print XML
  • xp: select nodes in XML source
  • transform: transform XML with XSLT
  • validate: validate an XML source

Installation

The Xul command line scripts can be installed with pip:

$ pip install Xul

Install Pygments for XML syntax highlighting (optional).

$ pip install Pygments

Dependencies

Xul uses the excellent lxml XML toolkit, a Pythonic binding for the C libraries libxml2 and libxslt.

Options

List the command-line options of a Xul script with --help. For example:

$ ppx --help

usage: ppx [-h] [-V] [-n] [-o] [xml_source [xml_source ...]]

Pretty Print XML source in human readable form.

positional arguments:
xml_source            XML source (file, <stdin>, http://...)

optional arguments:
-h, --help            show this help message and exit
-V, --version         show program's version number and exit
-n, --no-syntax       no syntax highlighting
-o, --omit-declaration
                      omit the XML declaration

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Xul-2.4.1.tar.gz (16.9 kB view hashes)

Uploaded source

Built Distribution

Xul-2.4.1-py2.py3-none-any.whl (22.6 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page