iex> import SweetXml
iex> "<hello>world</hello>" |> SweetXml.parse() |> xpath(~x"name(/*)"s)
"hello"
Stolen from this GitHub issue response.
Side note: That issue thread, although short, taught me a lot of useful information.
iex> import SweetXml
iex> "<hello>world</hello>" |> SweetXml.parse() |> xpath(~x"name(/*)"s)
"hello"
Stolen from this GitHub issue response.
Side note: That issue thread, although short, taught me a lot of useful information.