All Projects → expelledboy → exml

expelledboy / exml

Licence: other
Most simple Elixir wrapper for xmerl xpath

Programming Languages

elixir
2628 projects
Makefile
30231 projects
shell
77523 projects
Nix
1067 projects

Projects that are alternatives of or similar to exml

Pugixml
Light-weight, simple and fast XML parser for C++ with XPath support
Stars: ✭ 2,809 (+12113.04%)
Mutual labels:  xpath, xml-parser
Camaro
camaro is an utility to transform XML to JSON, using Node.js binding to native XML parser pugixml, one of the fastest XML parser around.
Stars: ✭ 438 (+1804.35%)
Mutual labels:  xpath, xml-parser
go-xmldom
XML DOM processing for Golang, supports xpath query
Stars: ✭ 38 (+65.22%)
Mutual labels:  xpath, xml-parser
Fuzi
A fast & lightweight XML & HTML parser in Swift with XPath & CSS support
Stars: ✭ 894 (+3786.96%)
Mutual labels:  xpath, xml-parser
Didom
Simple and fast HTML and XML parser
Stars: ✭ 1,939 (+8330.43%)
Mutual labels:  xpath, xml-parser
Xmlquery
xmlquery is Golang XPath package for XML query.
Stars: ✭ 209 (+808.7%)
Mutual labels:  xpath, xml-parser
Meeseeks
An Elixir library for parsing and extracting data from HTML and XML with CSS or XPath selectors.
Stars: ✭ 252 (+995.65%)
Mutual labels:  xpath
xpath2.js
xpath.js - Open source XPath 2.0 implementation in JavaScript (DOM agnostic)
Stars: ✭ 74 (+221.74%)
Mutual labels:  xpath
Ftr Site Config
Site-specific article extraction rules to aid content extractors, feed readers, and 'read later' applications.
Stars: ✭ 231 (+904.35%)
Mutual labels:  xpath
Nokogiri
HTML parser for PHP - Парсер HTML
Stars: ✭ 214 (+830.43%)
Mutual labels:  xpath
selectorlib
A library to read a YML file with Xpath or CSS Selectors and extract data from HTML pages using them
Stars: ✭ 53 (+130.43%)
Mutual labels:  xpath
telenium
Automation for Kivy Application
Stars: ✭ 56 (+143.48%)
Mutual labels:  xpath
xmltree-rs
Reads an XML file into a simple tree structure
Stars: ✭ 33 (+43.48%)
Mutual labels:  xml-parser
panthro
An implementation of XPath 3.0 in Objective-C/Cocoa
Stars: ✭ 45 (+95.65%)
Mutual labels:  xpath
exquery
EXQuery repository
Stars: ✭ 19 (-17.39%)
Mutual labels:  xpath
Ono
A sensible way to deal with XML & HTML for iOS & macOS
Stars: ✭ 2,599 (+11200%)
Mutual labels:  xpath
reapr
🕸→ℹ️ Reap Information from Websites
Stars: ✭ 14 (-39.13%)
Mutual labels:  xpath
vscode-xslt-tokenizer
VSCode extension for highlighting XSLT and XPath (upto 3.0/3.1)
Stars: ✭ 37 (+60.87%)
Mutual labels:  xpath
representable
Maps representation documents from and to Ruby objects. Includes JSON, XML and YAML support, plain properties and compositions.
Stars: ✭ 689 (+2895.65%)
Mutual labels:  xml-parser
koa-xml-body
koa middleware to parse xml request body
Stars: ✭ 36 (+56.52%)
Mutual labels:  xml-parser

Exml

Travis Hex.pm Hex.pm

Add to mix.exs

  defp deps() do
    [
      {:exml, "~> 0.1.2"}
    ]
  end

Basic usage

xml = """
<?xml version="1.0" encoding="UTF-8"?>
<bookstore>
    <book>
        <title lang="en">Harry Potter</title>
        <price>29.99</price>
    </book>
    <book>
        <title lang="en">Learning XML</title>
        <price>39.95</price>
    </book>
</bookstore> 
"""

doc = Exml.parse xml

Exml.get doc, "//book[1]/title/@lang"
#=> "en"

Exml.get doc, "//title"
#=> ["Harry Potter", "Learning XML"]

See w3schools for details about xpath!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].