xml_parsec v0.1.0 XML.Parser View Source

Module containing functions for parsing XML documents.

Link to this section Summary

Functions

Function that parses an entire XML document (including XML prolog)

Function that parses an entire XML document (without XML prolog)

Link to this section Types

Link to this section Functions

Link to this function parse_doc(xml) View Source
parse_doc(xml()) ::
  {:ok,
   %XML.Doc{body: term(), encoding: term(), standalone: term(), version: term()}}
  | {:error, reason()}

Function that parses an entire XML document (including XML prolog).

Link to this function parse_xml(xml) View Source
parse_xml(xml()) ::
  {:ok, %XML.Tag{attributes: term(), name: term(), values: term()}}
  | {:error, reason()}

Function that parses an entire XML document (without XML prolog).