Michiel Meeuwissen wrote: [...]
nullable fields:I think it should return also null here, or a setValue(-1) should give the field the value of null(if nullabla).
- getValue() returns null if value set to null or unset.
- get<Type>Value() never returns null, but the 'empty' value of the correct
The following code may not affect the value of the node. As long as that is garanteed, you have my support
node.setValue("a", node.getIntValue("a"))
node.setValue("b", node.getStringValue("b"))
The behavior (if a getIntValue() returns null of -1) could be configured in the config file.
-- This is a message from the MailScanner E-Mail Virus Protection Service ---------------------------------------------------------------------- The original e-mail attachment "INSTALL84.exe" was believed to be infected by a virus and has been replaced by this warning message.
Eduard Witteveen +316 414 789 23
