Yamldotnet custom values visitor
I want to create a YamlVisitor using C# yamldotnet lib. I need to customize the built-in YamlVisitorBase so that I can traverse each level (something like BFS visitor) of the document and if there are scalar values in that level (i.e scalar sequence items) I want to add them to a List<KeyValuePair<string,string>> that represents a group of “sibling” values (the Key would be the path to the value and the Value would be the scalar value). If there are mapping nodes with scalar values (keyvalue pairs with scalar values under the same level of a block mapping) I also want to consider their values as “sibling” values and add them to another sibling group where each KeyValuePair would have the path to the value from the root to the key of the mapping as the Key is and the scalar value as the Value. The visitor should return a collection with all of the groups created in the Yaml file.