U++ Forum - RDF feed
https://www.ultimatepp.org/forums/
Xmlize default value
https://www.ultimatepp.org/forums/index.php?t=rview&goto=37808&th=7053#msg_37808
A possible idea to improve Xmlize/Serialize functions would be to add a default value to be used when no data is found loading the class.
]]>koldo2012-11-14T09:27:03-00:00Re: Xmlize default value
https://www.ultimatepp.org/forums/index.php?t=rview&goto=39590&th=7053#msg_39590
My understanding of XML was that it is relatively robust so that if there is a missing field, it just gets ignored. However, the current version sets missing fields to null which seems to defeat the purpose.
Can this be easily fixed or extended to work the way that Koldo suggests? Either would work for me.
Nick
]]>nixnixnix2013-04-02T20:29:54-00:00Re: Xmlize default value
https://www.ultimatepp.org/forums/index.php?t=rview&goto=39591&th=7053#msg_39591
I still think it would be good ]]>koldo2013-04-02T21:53:40-00:00Re: Xmlize default value
https://www.ultimatepp.org/forums/index.php?t=rview&goto=41703&th=7053#msg_41703
Cheers,
or perhaps possible remove it completely (currently, there are also default variants with "item", "key" etc...).
Any suggestions?]]>mirek2014-02-10T14:07:31-00:00Re: Xmlize default value
https://www.ultimatepp.org/forums/index.php?t=rview&goto=42032&th=7053#msg_42032
Mirek]]>mirek2014-02-12T17:38:09-00:00Re: Xmlize default value
https://www.ultimatepp.org/forums/index.php?t=rview&goto=42039&th=7053#msg_42039
Works for me.