I need a method that has one input argument (aPath) and a boolean return value.
I want to check if the input is under “Mandatory” element.
For instance: IsMandatory(@”\documents”);
this is the xml:
<?xml version="1.0" encoding="utf-8" ?>
<strategy>
<mandatory>
<path>\\documents</path>
<path>\\movies</path>
<path>\\sounds</path>
</mandatory>
<optional>
<path>\\images</path>
</optional>
<ignored />
</strategy>
Something like:
Note that with the content in the origianl question, this will return true for:
which is to say, a string with the internal value
@"\documents\"