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