Code Monkey home page Code Monkey logo

axk's Introduction

axk: awk for XML files

INSTALLATION

To install this module, run the following commands:

perl Makefile.PL
make
make test
make install

USAGE

After installation, run axk. Options are similar to awk. Input scripts are Perl 5.18 with functions to, e.g., run on any node matching a given XPath. See L1.md for more details. For example, the script

-L1
on { xpath(q<//item>) } run { say "$NOW: " . $E->getTagName };

or the equivalent command line

axk -e 'on { xpath(q<//item>) } run { say "$NOW: " . $E->getTagName }' t/ex/ex1.xml

will print the tag name of each //item node in the input, along with an indication ($NOW) of whether the action is being run when entering or leaving the node.

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the perldoc command:

  • perldoc XML::Axk::App for command-line usage instructions
  • perldoc XML::Axk::L::L1 or L1.md for the language reference

LICENSE AND COPYRIGHT

Copyright (C) 2018 Christopher White

Licensed under the Artistic License 2.0; see LICENSE for more details.

Disclaimer of Warranty: This package is provided by the copyright holder and contributors "as is" and without any express or implied warranties. The implied warranties of merchantability, fitness for a particular purpose, or non-infringement are disclaimed to the extent permitted by your local law. Unless required by law, no copyright holder or contributor will be liable for any direct, indirect, incidental, or consequential damages arising in any way out of the use of the package, even if advised of the possibility of such damage.

axk's People

Contributors

cxw42 avatar manwar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cxw42 manwar

axk's Issues

Clean up the licensing and update the README

Currently the license statements are inconsistent.

Add to the README: Why axk; why not axkit (hadn't heard of it), pyx (different use case, plus hadn't heard of it :) ); why not XSLT

Links: 1, 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.