XML import support. Somewhat tested.