add snippet xml