Given the following XML snippet:
<Profile>
<Settings>
<PresentationParameters>
<Annualize>True</Annualize>
<LoadExAnteRiskForPresentation>False</LoadExAnteRiskForPresentation>
<MultiLegDisplayMode>Legs</MultiLegDisplayMode>
<Parameters>
<InitialDisplayMode>CollapseToPositions</InitialDisplayMode>
<InitialExpandCollapseLevel>-1</InitialExpandCollapseLevel>
</Parameters>
<PivotExpandCollapseStrategy>ExpandAllStrategy</PivotExpandCollapseStrategy>
<RollupExternallyManagedSleeves>False</RollupExternallyManagedSleeves>
<SharedParameters>
<AssetBasisInEffect>
<CalculationType>Invalid</CalculationType>
<IsColumnBasisInvested>False</IsColumnBasisInvested>
<Type>Standard</Type>
<Value>MWB_SESSION</Value>
</AssetBasisInEffect>
<AssetBasisSaveable>
<CalculationType>Invalid</CalculationType>
<IsColumnBasisInvested>False</IsColumnBasisInvested>
<Type>Standard</Type>
<Value>MWB_SESSION</Value>
</AssetBasisSaveable>
<CurrencySaveable>
<Mode>GROUP</Mode>
</CurrencySaveable>
<IsSessionBasisInEffect>True</IsSessionBasisInEffect>
</SharedParameters>
<ShowPositionsGrandTotal>True</ShowPositionsGrandTotal>
<TargetingCurrency>
<Mode>GROUP</Mode>
</TargetingCurrency>
<TransposeColumns>False</TransposeColumns>
<UnitBasisMeasureOption>PercentagePoints</UnitBasisMeasureOption>
<UnitTrustConstituentMode>DoNotDisplay</UnitTrustConstituentMode>
<WeightProrationOption>Default</WeightProrationOption>
</PresentationParameters>
</Settings>
</Profile>
I want to return a result that shows the full path of each leaf node, along with its value - as such:
Settings.PresentationParameters.Annualize TRUE
Settings.PresentationParameters.LoadExAnteRiskForPresentation FALSE
Settings.PresentationParameters.MultiLegDisplayMode Legs
Settings.PresentationParameters.Parameters.InitialDisplayMode CollapseToPositions
...
Looking for advice on how to retrieve the entire path of the node.