Forum Discussion
Vijayata
16 years agoOccasional Contributor
Ok Cool!!!
That really worked for me.
I am thankful to you
Actually what if I have such repeating nodes and I want to loop through it and print the guids one by one on console? How can I do this?
i.e.
<Response>
<e>
<cloudClass>Some Class name</cloudClass>
<errorCode>503</errorCode>
<errorDescription>Some Error</errorDescription>
<guid>ca1f535d-cd9f-409d-a66c-4e2c6fdfadf4</guid>
</e>
<e>
<cloudClass>Some Class name</cloudClass>
<errorCode>403</errorCode>
<errorDescription>Some Error</errorDescription>
<guid>dfgdg35d-cd9f-409d-a66c-4e2c6fdfaa31</guid>
</e>
<e>
<cloudClass>Some Class name</cloudClass>
<errorCode>404</errorCode>
<errorDescription>Some Error</errorDescription>
<guid>asdv535d-cd9f-409d-a66c-4e2c6fdf5678</guid>
</e>
</Response>
That really worked for me.
I am thankful to you

Actually what if I have such repeating nodes and I want to loop through it and print the guids one by one on console? How can I do this?
i.e.
<Response>
<e>
<cloudClass>Some Class name</cloudClass>
<errorCode>503</errorCode>
<errorDescription>Some Error</errorDescription>
<guid>ca1f535d-cd9f-409d-a66c-4e2c6fdfadf4</guid>
</e>
<e>
<cloudClass>Some Class name</cloudClass>
<errorCode>403</errorCode>
<errorDescription>Some Error</errorDescription>
<guid>dfgdg35d-cd9f-409d-a66c-4e2c6fdfaa31</guid>
</e>
<e>
<cloudClass>Some Class name</cloudClass>
<errorCode>404</errorCode>
<errorDescription>Some Error</errorDescription>
<guid>asdv535d-cd9f-409d-a66c-4e2c6fdf5678</guid>
</e>
</Response>