Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
NULL values in XML files?
Message
De
04/09/2003 15:31:03
 
 
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
00826140
Message ID:
00826184
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform