Verify type of input xml before conversion
More type checking prior to conversion