Fixed typo in XML writer, fixed parsing of RDL handler