Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 17th, 2006, 03:18 PM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default For XML data retrieval

How to add line breaks after each node when I use "for XML explicit"? I would appreciate it for any suggestions.



 
Old May 18th, 2006, 07:59 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 146
Thanks: 0
Thanked 1 Time in 1 Post
Default

What are you using to view the data afterwards. If you were saving the XML out as a .XML file and then viewing it in Internet Explorer, or a real XML tool, then it will do the formating for you. If you are just looking at the result in Query Analyzer I don't know what to tell you.

David Lundell
Principal Consultant and Trainer
www.mutuallybeneficial.com
 
Old May 18th, 2006, 10:33 AM
Registered User
 
Join Date: May 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

David,

Thank you so much! I got the link breaks in the result in Query Analyzer by using use dbcc traceon(257). Is it possible to save the file as .ctl? .In the file with extension .xml, the line break is just like “ ” without quotations. In the file with extension .ctl, the line break is like “[] ” without quotations.

I want to save file as .ctl in order it has right line break for the file with extension .ctl.

Thank you in advance

Fan








Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple input xml / get data from other xml file elayaraja.s XSLT 3 July 25th, 2008 06:59 AM
VB.net, adding XML data to an existing XML file saikoboarder XML 11 April 17th, 2008 04:19 PM
XML Retrieval Help t3projects BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 0 October 11th, 2005 03:24 PM
Need help with JSP data retrieval crashpoint Java Databases 1 August 3rd, 2005 01:00 AM
Data retrieval using MySQL rajanikrishna Beginning PHP 2 November 12th, 2003 11:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.