quinn v1.1.3 Quinn

The main entry point methods for using Quinn. Currently you can parse xml and find nodes in a parsed structure.

Summary

Functions

Find a node from a list of parsed xml

Parse a string of xml into elixir lists and maps

Functions

find(node, node_names)

Find a node from a list of parsed xml.

Example

Quinn.find(parsed_xml, :body)
parse(xml, options \\ %{})

Parse a string of xml into elixir lists and maps.

Example

Quinn.parse("<head><title short_name = "yah">Yahoo</title><title:content>Bing</title:content></head>")

will produce:

[%{attr: [], name: :head,
   value: [%{attr: [short_name: "yah"], name: :title, value: ["Yahoo"]},
           %{attr: [], name: :"title:content", value: ["Bing"]}]}]