Optimized XML tag functions

Added optimized XML tag functions to canvasrenderer