I'm parsing the body of an http request that is set up in like this:
<something>
...
<inner_something>
...
<foo bar='VALUE_I_WANT'>
...
</FOO >
...
</inner_something>
...
</something>
What is an idiomatic approach to finding VALUE_I_WANT
? Can I loop though the tokens using a decoder? How can check that a token is foo and get the attribute bar? (those names are constant). Is that the only way using the std lib? No way to look up tokens directly?