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:

<field123 <field1>

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

<field123 <field1>
<field2 />

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

Thanks in advance
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.