How to distinguish between XML and Stencil.