I have the following xml doc
<assumption_list>
<assumption name="Sample1567" id="9" description="reinvestment description" is_shared="no">
<reinvestment>
<reinvestmentType>Global REINV</reinvestmentType>
<autoReinv autoReinvEnd="6 mo before Final Maturity"/>
<atRP currentPrinCash="NO" recoveries="NO" scheduled="NO" prepayment="NO">0</atRP>
</reinvestment>
</assumption>
<assumption name="Sample" id="8" description="reinvestment description" is_shared="no">
<reinvestment>
<reinvestmentType>Global REINV1</reinvestmentType>
<autoReinv autoReinvEnd="6 mo1 before Final Maturity"/>
<atRP currentPrinCash="7778" recoveries="NO" scheduled="NO" prepayment="NO">0</atRP>
</reinvestment>
</assumption>
</assumption_list>
How can i grab the following element and its child element in php for assumption tag with name="Sample1567"
<reinvestment>
<reinvestmentType>Global REINV</reinvestmentType>
<autoReinv autoReinvEnd="6 mo before Final Maturity"/>
<atRP currentPrinCash="NO" recoveries="NO" scheduled="NO" prepayment="NO">0</atRP>
</reinvestment>
I need to grab this section mentioned above and convert it to a string so that i can pass it c# dll used by PHP Application.