Code now outputs to XML. RNC changes <elem> to <item>.