假设我有一个YAML根节点,在遍历此根节点后,我找到了我感兴趣的节点。如何更新此节点的键/值对?
YAML::Node oldNode = YAML::LoadFile("original.yaml");
YAML::Node insertNode = YAML::LoadFile("insert.yaml");
for(YAML::iterator yit = oldNode.begin(); yit != oldNode.end(); ++yit)
{
//how do I update the key/value pair of *yit ?
//I want to each *yit with the "insertNode"
}