Process (marshal) the tag with the specified value using the optional type information. @param value: The value (content) of the XML node. @type value: (L{Object}|any) @param tag: The (optional) tag name for the value. The default is value.__clas
(self, value, tag=None)
| 31 | """ |
| 32 | |
| 33 | def process(self, value, tag=None): |
| 34 | """ |
| 35 | Process (marshal) the tag with the specified value using the |
| 36 | optional type information. |
| 37 | @param value: The value (content) of the XML node. |
| 38 | @type value: (L{Object}|any) |
| 39 | @param tag: The (optional) tag name for the value. The default is |
| 40 | value.__class__.__name__ |
| 41 | @type tag: str |
| 42 | @return: An xml node. |
| 43 | @rtype: L{Element} |
| 44 | """ |
| 45 | content = Content(tag=tag, value=value) |
| 46 | result = Core.process(self, content) |
| 47 | return result |