new XmlObjSerializer()
Use XML to do serialization job.
- Source:
Extends
Methods
-
load(obj, storageNode) → {Object}
-
load an object from storageNode.
Parameters:
Name Type Description objObject Object to load, can be a normal Object or ObjectEx. Leave this param to null will force the serializer create a new instance. storageNodeObject Node to save data. Each concrete serializer has its own type of node to store data. - Inherited From:
- Source:
Returns:
Object loaded.- Type
- Object
-
save(obj, storageNode, options)
-
Save an object to destNode.
Parameters:
Name Type Description objObject Object to save, can be a normal Object or ObjectEx. storageNodeObject Node to save data. Each concrete serializer has its own type of node to store data. optionsHash Save options. Can have the following fields: { saveDefaultValues: Bool, propFilter: function(prop, obj), return value decides which property should be saved } - Inherited From:
- Source: