XMETAL is a XML editor. I worked I while with it, but never in connection to InDesign. I had to set up books with Schema4.
But I think you could try to import the XML structure and InDesign has an XML panel where you can add formats to XML nots. Be aware I am not a XML specialist, it is only the way where I would try to start and try.