Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML Newbie - Default Value of Null

Status
Not open for further replies.

skip513

Programmer
Oct 24, 2003
2
US
I am relatively new to using XML. Is it possible to set an elements default value to NULL in an XSD? I have tried severals ways unsuccessfully to do this using the designer in vb.net. If anyone can point me in the right direction it would be greatly appreciated.

Thanks,
Sergio Ora
 
XML doesn't use a NULL like a relational database does. You can either have a value, or not.

Unless you're talking about a DateTime element, in which case I've seen Microsoft use 0001/01/01 00:00:00 for a value to indicate a lack of a value.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Thanks for the clarification Chip! I assumed as much but I was hoping someone would prove me wrong.

Thanks,
Sergio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top