Index: /waeup/branches/ulif-rewrite/src/waeup/utils/importexport.txt
===================================================================
--- /waeup/branches/ulif-rewrite/src/waeup/utils/importexport.txt	(revision 4050)
+++ /waeup/branches/ulif-rewrite/src/waeup/utils/importexport.txt	(revision 4051)
@@ -76,2 +76,38 @@
     >>> import os
     >>> os.unlink('myexport.xml')
+
+Importing XML
+=============
+
+We can generate objects from XML.
+
+Let's create a faculty instance, that we want to be restored
+afterwards::
+
+    >>> from waeup.university.faculty import Faculty
+    >>> myfaculty = Faculty()
+    >>> myfaculty.name = 'My very faculty.'
+
+We create an XML dump of this object::
+
+    >>> from waeup.interfaces import IWAeUPXMLExporter
+    >>> exporter = IWAeUPXMLExporter(myfaculty)
+    >>> result = exporter.export('myexport.xml')
+
+We change the name of the faculty::
+
+    >>> myfaculty.name = 'Another name'
+
+Now we create an importer for that file::
+
+    >>> from waeup.interfaces import IWAeUPXMLImporter
+    >>> importer = IWAeUPXMLImporter(myfaculty)
+    >>> new_obj = importer.doImport('myexport.xml')
+
+The object created is indeed a faculty::
+
+    >>> new_obj
+    <waeup.university.faculty.Faculty object at 0x...>
+
+    >>> new_obj.name
+    'My very faculty'
