Delphi DeHL Deserialize XML File in newer class? -



Delphi DeHL Deserialize XML File in newer class? -

i utilize dehl serilize xml , class in delphi , if add together property class , seek deserialize xml file. have error : ‘deserializing « \tapp\fobject\test » failed. serializer reported it’s missing or other entity read!’.

i understand quite problem there way set default value instead of error ?

alex reply me :

you should able — annotating “part2″ field [xmlnullable]. tell xml serializer set “part2″ field nil if not have xml node.

note while possible it’s not recommended. deserialized content should serialized original types otherwise “bad things” may happen.

i inquire question long time ago on site not able find inquire question : http://alex.ciobanu.org/?p=285#comments

xml delphi xml-serialization delphi-2010 dehl

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -