first get the xml doc, then pass it to DomModel. Not the other way around