Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Latest commit

 

History

History
60 lines (39 loc) · 1.5 KB

README.md

File metadata and controls

60 lines (39 loc) · 1.5 KB

lxml

An LFE XML-parsing wrapper for erlsom, with utility functions

Note that for genereating XML in LFE (using S-expressions), we recommend exemplar. The intended use for lxml is the parsing of XML documents.

Table of Contents

Introduction

lxml, or as it is better known, Professor El Xavier Emile (A.K.A "El X. Emile"), is a wrapper for the Erlang community's erlsom library, providing the following additional features:

  1. Lispy naming conventions via LFE and kla, and
  2. Utility functions for easily accessing parsed XML data (e.g., map, get-in, get-linked, &c.).

Both of these are discussed more in the lxml docs (see below for the link).

Installation

Just add it to your rebar.config deps:

  {deps, [
    ...
    {lxml, ".*", {git, "[email protected]:oubiwann/lxml.git", "master"}},
    ...]}.

Or, if you use lfe.config:

#(project (#(deps (#("oubiwann/lxml" "master")))))

And then do the usual:

    $ make compile

Usage

Usage information is provided on the documentation site.