xml file with missing nodes is written now