[Lxml-checkins] r46057 - lxml/trunk/doc

scoder at codespeak.net scoder at codespeak.net
Mon Aug 27 20:14:04 CEST 2007


Author: scoder
Date: Mon Aug 27 20:14:04 2007
New Revision: 46057

Modified:
   lxml/trunk/doc/objectify.txt
Log:
doc cleanup

Modified: lxml/trunk/doc/objectify.txt
==============================================================================
--- lxml/trunk/doc/objectify.txt	(original)
+++ lxml/trunk/doc/objectify.txt	Mon Aug 27 20:14:04 2007
@@ -895,16 +895,12 @@
           * py:pytype = 'str'
           * myattr = 'someval'
 
-Likewise, the data type can be provided as an XML Schema type using the _xsi
-argument of ``DataElement()``::
-
-    >>> root = objectify.Element("root")
-    >>> root.s = objectify.DataElement(5, _xsi="string")
+    >>> root.x = objectify.DataElement(5, _xsi="integer")
     >>> print objectify.dump(root)
     root = None [ObjectifiedElement]
-        s = '5' [StringElement]
-          * py:pytype = 'str'
-          * xsi:type = 'xsd:string'
+        x = 5L [LongElement]
+          * py:pytype = 'long'
+          * xsi:type = 'xsd:integer'
 
 XML Schema types reside in the XML schema namespace thus ``DataElement()`` 
 tries to correctly prefix the xsi:type attribute value for you::


More information about the lxml-checkins mailing list