Imports

Import elements are a special feature of the CustomOreGen xml parser. They take the name of another XML file as an attribute and merge the contents of that file into their parent element.

There are two elements for importing,  and , which behave the same except that the latter will not raise an error if the target file is not found.

The target must be a well-formed XML file, meaning that it must have exactly one root element. If the intended content is a group of elements with no single root (for example a group of distributions), wrap them in a  element to make a well-formed xml file.

An Import element can be used anywhere that the contents of the target file would be valid. In short, imports act exactly like copying & pasting. Imported files may contain imports themselves, but use caution to avoid infinite import loops.