diff --git a/lib/sweet_xml.ex b/lib/sweet_xml.ex index 34d31c0..7f0b009 100644 --- a/lib/sweet_xml.ex +++ b/lib/sweet_xml.ex @@ -445,7 +445,6 @@ defmodule SweetXml do get_current_entities(parent, spec) |> spec.transform_fun.() end - def xpath(parent, sweet_xpath, subspec) do if sweet_xpath.is_list do current_entities = xpath(parent, sweet_xpath) @@ -554,6 +553,26 @@ defmodule SweetXml do %{sweet_xpath | transform_fun: fun} end + @doc ~S""" + Convert `doc` to XML string + + ## Examples + + iex> import SweetXml + iex> "