I am trying to find a way of proper deserialization of property from XML. Actually looking for an universal way to do opposite action to property.ToXml()
the quick way is to use the Packaging Service - it has export and import routines for most objects in umbraco.
However it doesn't do mappings of ids and stuff (not yet anyway) so if for example you have a property that points to something else in umbraco it will likely contain the ID of the property, and that might be different when you import a property onto another umbraco install.
uSync does do this mapping (disclaimer: i wrote it), and you can call the serialize / deseralize methods within it to get to and from xml, with the mappings.
Generic way to deserialize property.
Hi, umbraco community.
I am trying to find a way of proper deserialization of property from XML. Actually looking for an universal way to do opposite action to
property.ToXml()
Hi
the quick way is to use the Packaging Service - it has export and import routines for most objects in umbraco.
However it doesn't do mappings of ids and stuff (not yet anyway) so if for example you have a property that points to something else in umbraco it will likely contain the ID of the property, and that might be different when you import a property onto another umbraco install.
uSync does do this mapping (disclaimer: i wrote it), and you can call the serialize / deseralize methods within it to get to and from xml, with the mappings.
is working on a reply...