As the title says, can anyone tell me how to get the number of child nodes for lets say <script> node in the xml below using XmlTextReader? (which should be 2 - row1 and row2 )
---------Test.xml-----------
<?xml version="1.0" encoding="utf-8" ?>
<Script>
<row1>
<dlgue>this is the tool i made</dlgue>
<ava>angeline </ava>
<exp>happy</exp>
<pos>left</pos>
<bg>beach</bg>
<bgm>song1</bgm>
<sfx>sfx1</sfx>
<ef>shake</ef>
</row1>
<row2>
<dlgue>wow.. amazing!</dlgue>
<ava>samantha </ava>
<exp>surprise d</exp>
<pos>right</pos>
</row2>
</Script>
---------Test.xml-----------
<?xml version="1.0" encoding="utf-8" ?>
<Script>
<row1>
<dlgue>this is the tool i made</dlgue>
<ava>angeline </ava>
<exp>happy</exp>
<pos>left</pos>
<bg>beach</bg>
<bgm>song1</bgm>
<sfx>sfx1</sfx>
<ef>shake</ef>
</row1>
<row2>
<dlgue>wow.. amazing!</dlgue>
<ava>samantha </ava>
<exp>surprise d</exp>
<pos>right</pos>
</row2>
</Script>