I need a little push in the right direction on how to parse an entire XML document to a dictionary. My plan is to have the key be the path, with each nested type split up by "->". For instance:

```
<Foo>
    <Bar>3</Bar>
    <Foo>
        <Bar>10</Bar>
    </Foo>
</Foo>

```

If I wanted to get a value I'd just grab it out of the dictionary using:

```
string value = Elements["Foo->Bar"];

```

I'm not really sure how to go through each element recursively though. 
Any help appreciated.