work in progress: rewriting parseXML for oapmc using XMLDOM API + saner code