Re: Re: relaxng-user Digest, Vol 18, Issue 1

Elliotte Rusty Harold <[email protected]> Tue, 05 Apr 2005 15:03:07 -0400
Newsgroups gmane.text.xml.relaxng.general
Message-ID <[email protected]>
Bob Kennelly wrote:
> Hello!
>  
> When using Oracle's XMLSAXSerializer to download table data and convert 
> it to an XML format, i'm finding out that, if the Oracle data is NULL, 
> it doesn't actually create an empty tagged entry, ie  
> <elelment5></element5>, but only creates XML entries for those table 
> fields that are NOT NULL!

In most scenarios the value of <element5></element5> does not correspond 
to NULL. Rather it corresponds to the value of element5 being the empty 
string. Most commonly, NULL corresponds to there being no element5 
element at all. Alternately you'll occasionally see <element5 
xsi:nil="true"></element5>. However, no element at all is normally the 
right approach.

-- 
Elliotte Rusty Harold  [email protected]
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim