891933 wrote:
unable to see data properly.
could you please tell me how to see the data properly.

Depends on what you mean by "properly".

Is the generated XML document incomplete?

If you need to see it in a nicely formatted output with indentation and newlines, then just save the doc in a file and open it with an XML editor (any recent web browser will do).
Alternatively, in your version, use the EXTRACT() method, it will force pretty-print, but I suggest you only do that during development, for debugging purpose :