SimpleForm

View Source

SimpleForm provides helper functions for working with parsed HTML and XML content, particularly when using Saxy (an XML parser) in Elixir projects. It simplifies data extraction, transformation, and manipulation by structuring parsed data in a consistent, tuple-based format, making traversal and modification more intuitive.

The term SimpleForm originates from xmerl.

While technically this library could work with datastructures from xmerl and Floki, the focus on Saxy specifically.

Features

  • Utility functions for extracting and transforming parsed SimpleForm data
  • Seamless integration with Saxy's simple form representation
  • Simplified traversal of document trees and structured form data extraction
  • Reduces boilerplate code when processing structured SimpleForm content

Installation

Add simple_form to your list of dependencies in mix.exs:

def deps do
  [
    {:simple_form, "~> 1.0.0"}
  ]
end

Then, fetch dependencies:

mix deps.get

Documentation

Detailed documentation is available at HexDocs.

License

This project is licensed under the EUPL-1.2 License.