update primitives XmlDoc