Update XML specification and xml sample