String to Nodelist
Posted: Thu Nov 03, 2005 4:55 am
Hi....
I've XML schema as shown below:
\
<UI_BeneficiaryInfo>
<PrimaryBeneficiary>
<Beneficiary1>
<Name/>
<Relationship/>
<PercentDesignated/>
</Beneficiary1>
<Beneficiary2>
<Name/>
<Relationship/>
<PercentDesignated/>
</Beneficiary2>
</PrimaryBeneficiary>
</UI_BeneficiaryInfo>
I've to display the 2 rows corresponding to Beneficiary. Each row will contain name, relationship & percent. I was able to display these rows but I couldn't assign the XPATH to them. I've a written a loop to display these rows & when I'm concatenating the XPATH with Beneficiary & then appending 1, 2 ....through for-loop, I'm getting an exception, since it bacame the string after concatenation. What I need is a value & not a string. Can anyone help?
I've XML schema as shown below:
\
<UI_BeneficiaryInfo>
<PrimaryBeneficiary>
<Beneficiary1>
<Name/>
<Relationship/>
<PercentDesignated/>
</Beneficiary1>
<Beneficiary2>
<Name/>
<Relationship/>
<PercentDesignated/>
</Beneficiary2>
</PrimaryBeneficiary>
</UI_BeneficiaryInfo>
I've to display the 2 rows corresponding to Beneficiary. Each row will contain name, relationship & percent. I was able to display these rows but I couldn't assign the XPATH to them. I've a written a loop to display these rows & when I'm concatenating the XPATH with Beneficiary & then appending 1, 2 ....through for-loop, I'm getting an exception, since it bacame the string after concatenation. What I need is a value & not a string. Can anyone help?