Added writing of element values for each child element. Added test for this and added test for the success result of the file write.