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

Elliotte Rusty Harold elharo at metalab.unc.edu
Tue Apr 5 15:03:07 ICT 2005


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  elharo at metalab.unc.edu
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


More information about the relaxng-user mailing list