Skip to content

Emacs minor mode to use XMLStarlet CLI for XPath querying and formatting XML

Notifications You must be signed in to change notification settings

xshyamx/xmlstarlet-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

xmlstarlet-mode

Minor mode providing XPath querying and XML formatting via the xmlstarlet command line utility.

Adds the following keybindings

Keybinding Feature With C-u prefix argument
C-c C-c Runs XPath query and displays results in the *XPath-Result* buffer Displays results in text mode instead of nxml mod
C-c f Formats XML and displays in the *xml-format* buffer Replaces current buffer contents

Installation

  1. Install XMLStarlet and make it available from on the PATH

  2. Clone the repo to site-lisp directory

  3. Add to load-path

    (add-to-list
    	'load-path
    	(expand-file-name "site-lisp/xmlstarlet-mode" user-emacs-directory))
  4. Load & configure

    (require 'xmlstarlet-mode)
    (setq xmlstarlet-command "xmlstarlet")

About

Emacs minor mode to use XMLStarlet CLI for XPath querying and formatting XML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published