Fixing issue #1086 - Fixed xmlbuilder patch to patch proper prototype