Lock xmlbuilder