hi all,
i've been experimenting with the "for xml auto" addition to select statements to get xml data. one problem i'm having is the formating of the output. it's all exactly what i want as far as the tags and attributes are concerned, but whereas the ms examples show output that is formatted nicely with child elements showing indented on separate lines and whatnot, my results are coming out on a single line that get's cut off after so many characters. is there something i'm missing for getting a more user friendly output?
as an example, i want to have...
what i'm getting from sql server is...
thanks,
glenn
i've been experimenting with the "for xml auto" addition to select statements to get xml data. one problem i'm having is the formating of the output. it's all exactly what i want as far as the tags and attributes are concerned, but whereas the ms examples show output that is formatted nicely with child elements showing indented on separate lines and whatnot, my results are coming out on a single line that get's cut off after so many characters. is there something i'm missing for getting a more user friendly output?
as an example, i want to have...
Code:
<parent element attribute="value">
<child element/>
</parent>
what i'm getting from sql server is...
Code:
<parent element attribute="value"><child element/></par
thanks,
glenn