By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

empty data xml tag

P: n/a
Hi, All,

I want to generate empty data tag, for example, the table1 has 2 fileds
called field1 and field2, the field1 has data there but field2 no data, when
creating xml fiel using query select field1, field2 from table1 for xml auto,
elements, get xml file like this:

<Table1>
<field123 <field1>
</Table1>

But I want field2 xml tag <field2 /show in the file like

<Table1>
<field123 <field1>
<field2 />
</Table1>

That means <field2 /tell no data, but I want the xml tag display in the
file.
can anyone know how to generate empty data xml tag?

Thanks in advance
Martin
Nov 9 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.