XML::Compile can be used to translate a Perl data-structure into XML or XML into a Perl data-structure, both directions under rigid control by a schema

A good starting-point is method compile(), called on a XML::Compile::Schema object.

all manuals
A list of all manuals included in XML::Compile.
all methods
An overview of all methods, arranged alphabetically
all diagnostics
A list of all diagnostics which can be produced by this module. Often useful to determine which method is complaining about a mistake.
all details
Many manual pages contain a DETAILS chapter which explains all kinds of facts about the general background, implementation specifics, and examples of complex use of the items. Looking through the full list of details may help to find a solution.

Mark Overmeer. Documentation of XML::Compile version 1.64, produced with XML::Compile on 2023/02/24.