Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NULL values in XML files?
Message
From
04/09/2003 15:31:03
 
 
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
00826140
Message ID:
00826184
Views:
24
Steve,

Allowing NULLs seems to be the default if nothing else is specified (I don't see anything specifed one way or the other in our .xsd files). As far as the data itself goes, a null value would be represented in the XML by just leaving the tag empty.
    <street>Foo</street>
    <apartment />
In the above example, apartment is a NULL field.


~~Bonnie



>How can I go about a) permitting null values for an element defined in an XSD file, and b) express a null value in an XML element?
>
>I note the "nillable" attribute for an element definition, but setting the nillable attribute to "true" doesn't allow me to either leave the element empty, or with a value of "NULL" or "nil".
>
>FWIW, the element I'm dealing with uses a float data type, but needs to permit the equivalent of a null value.
>
>Thanks.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform