Default rules for schema detection from XML
By inspecting the beginning of an XML document, schema detection automatically determines path expressions for
repeating elements, locating row elements relative to the document root,
column elements or attributes, locating columns relative to row elements.
This process begins by finding potential columns. Attributes and elements without children elements are considered potential columns.
Their parent elements are candidates for the repeating element. From those, the first path that occurs at least twice will be chosen. If there is none that occurs twice, the first one with the highest number of columns is chosen.
The relative paths of all children elements of the repeating element make up the column element path expressions.