Forum Home
|
Marketplace
|
Articles
|
Blogs
|
Interviews
|
Tools
REGISTER
|
SEARCH
|
MEMBERS
|
F.A.Q.
Register Here
Forum Rules
Webmaster-Talk.com
>
Web Administration Talk
>
The Database Forum
>
Generate XML from mssql2005
Link Back
Thread Tools
Generate XML from mssql2005
01-09-2008, 08:15 AM
#
1
(
permalink
)
Generate XML from mssql2005
MacW
Junior Talker
Posts: 2
Name: Marcus
Talkupation:
I want to create a procedure that generates the following format for a XML response.
<row>
<field name="nr">99</field>
<field name="namn">test bolag</field>
</row>
<row>
<field name="nr">98</field>
<field name="namn">test bolag 2</field>
</row>
When You
Register
, These Ads Go Away!
01-09-2008, 02:25 PM
#
2
(
permalink
)
Re: Generate XML from mssql2005
Learning Newbie
Moderator
Latest Blog Post:
Dick Cheney as a Web Comic
Posts: 4,696
Name: John Alexander
Talkupation:
Well if you don't want to do SELECT FOR XML and use XSLT, you could do
SELECT '<row>' + chr(13) + '<field name='nr'>' + nr + '</field>' and so on.
__________________
4 ways to improve the lives of the "bottom billion"
"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
01-11-2008, 10:23 AM
#
3
(
permalink
)
Re: Generate XML from mssql2005
MacW
Junior Talker
Posts: 2
Name: Marcus
Talkupation:
And if I want to use FOR XML, is there a way to alter the tags?
« Reply to
Generate XML from mssql2005
Previous Thread
|
Next Thread
Webmaster-Talk.com
>
Web Administration Talk
>
The Database Forum
>
Generate XML from mssql2005
Thread Tools
Show Printable Version
Email this Page
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
vB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Webmaster Resources Marketplace:
Software Development Company
|
Webhosting.UK.com
Web Templates
|
Text Link Brokers
|
Stock Photos
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
Mark Forums Read
-
View Forum Leaders
-
Contact Us
-
Webmaster Forum
-
Advertise
-
Archive
-
Privacy Statement
-
Top
Page generated in
0.11184
seconds with
13
queries