Ron, By definition, a xml attribute can receive null values, as defined at: http://www.w3.org/TR/xmlschema11-2/#cvc-datatype-valid
--snip-- Properties always have values. [Definition:] An optional property is permitted but not required to have the distinguished value absent. [Definition:] Throughout this specification, the value absent is used as a distinguished value to indicate that a given instance of a property "has no value" or "is absent". This should not be interpreted as constraining implementations, as for instance between using a null value for such properties or not representing them at all. --snip-- but, in the main, nil/null values should be converted to an empty data type like string, number, date, etc for practical use. So I think this work could be done before set null value to a xml document (strong typing). regards, Eduardo --- Em seg, 22/6/09, Ron Pinkas <ron.pin...@xharbour.com> escreveu: > De: Ron Pinkas <ron.pin...@xharbour.com> > Assunto: Re: [xHarbour-developers] Big problem with TXML():SetAttribute() > Para: "Jose F. Gimenez" <jfgime...@wanadoo.es>, "Eduardo Fernandes" > <modals...@yahoo.com.br>, "xHarbour-Developers List" > <xharbour-developers@lists.sourceforge.net> > Data: Segunda-feira, 22 de Junho de 2009, 10:27 > Can anyone explain why should NIL not > be a valid value? > > -------------------------------------------------- > From: "Jose F. Gimenez" <jfgime...@wanadoo.es> > Sent: Monday, June 22, 2009 5:17 AM > To: "Eduardo Fernandes" <modals...@yahoo.com.br>; > "xHarbour-Developers List" > <xharbour-developers@lists.sourceforge.net> > Subject: Re: [xHarbour-developers] Big problem with > TXML():SetAttribute() > > > Eduardo, > > > >> in c) I think return the previous value is more > useful. > >> in d) I think we can replace ! empty( xvalue) to ! > hb_isnil(xvalue). > > > > I've changed it to allow a) and restored all behaviour > of b) c) and d). > > ITOH, now it's not checking if xValue is nil. If you > want, you may add it. > > > > > > Regards, > > > > Jose F. Gimenez > > > > > > > ------------------------------------------------------------------------------ > > Are you an open source citizen? Join us for the Open > Source Bridge > > conference! > > Portland, OR, June 17-19. Two days of sessions, one > day of unconference: > > $250. > > Need another reason to go? 24-hour hacker lounge. > Register today! > > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > > _______________________________________________ > > xHarbour-developers mailing list > > xHarbour-developers@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/xharbour-developers > > > > ------------------------------------------------------------------------------ > Are you an open source citizen? Join us for the Open Source > Bridge conference! > Portland, OR, June 17-19. Two days of sessions, one day of > unconference: $250. > Need another reason to go? 24-hour hacker lounge. Register > today! > http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org > _______________________________________________ > xHarbour-developers mailing list > xHarbour-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/xharbour-developers > Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers