defmodule Example.One do use XmlSchema, tag: "a" xml do xml_one :j, Example.Tag xml_one :s, Example.Tag end def doc do """ one """ end def expect do %Example.One{ _attributes: nil, j: %Example.Tag{_attributes: nil, k: "one"}, s: nil } end def expect_xml do """ one """ |> String.trim_trailing() end end