You can use < pre> tag (w/o spces) to preserve formatting.
The CURSORTOXML() doesn't support creaetion of hierarchical XML but XMLADAPTER() does.
>I have some records as follows:
>FIELDS
>A1
>A2
>A3
>A4_1
>A4_2
>A5
>
>
>I need to get the A4_1 abd A4_2 fields out as children to an A4 field in the XML file
><A4>
> <A4-1>
> Any Stuff Here
> <A4-1>
> <A4-2>
> Any Stuff in Here
> </A4-2>
></A4>
Is there any way to do this using CursorToXML
--sb--