I have one more problem now
. After generating and populating the XML, from other part of my program I need to read the text in each element node.
and i tried using the below code
But on the line marked 'here' I am getting a nullPointer exception (the ele1 is null). For this method I am passing (Document doc,Element root) as the parameters. I am not able to figure out why ele1 is not getting a value.
I am using this code to generete the XML
A sample of my XML document is below.
PLease help me to solve this problem.