Migrating compound data structures from XML How would you migrate a complex data structure in XML format, such as:

&lt;products&gt;
  &lt;product&gt;
    &lt;name&gt;Product 1&lt;/name&gt;
    &lt;price&gt;3.99&lt;/price&gt;
    &lt;colour-options&gt;
      &lt;colour&gt;red&lt;/colour&gt;
      &lt;colour&gt;blue&gt;&lt;/colour&gt;
    &lt;colour-options&gt;
  &lt;/product&gt;
&lt;/products&gt;


How would you migrate data in this format, into a content type? I'm guessing that the best way would be using the Migrate module.
Migrate can help you with this. 

You can extend XMLMigration and use MigrateSourceXML.

I have a partial stack exchange data import which uses this with code on github.