04-09-2013, 01:27 PM
Thanks Basanth for the above code. It defonatley gives me the element name and its value.
Just one more doubt how can remove the </ABC> for all the elements coming in the result.
Sorry for the confusion. Now from the above code which you provided, I am getting the result as :
<Reason>0</Reason>
<Number>1</Number>
<Load>0</Load>
And I want my result to look as below :
<Reason>0
<Number>1
<Load>0
I hope that clarifies.
Thanks
Just one more doubt how can remove the </ABC> for all the elements coming in the result.
Quote:I do not get the </ABC> for the xml data you had provided. Can you please highlight it?
Sorry for the confusion. Now from the above code which you provided, I am getting the result as :
<Reason>0</Reason>
<Number>1</Number>
<Load>0</Load>
And I want my result to look as below :
<Reason>0
<Number>1
<Load>0
I hope that clarifies.
Thanks