Adding safe XML parsing option and test case.