Example #1
0
 def unmarshaller(self):
     """
     Get the appropriate schema based XML decoder.
     @return: Typed unmarshaller.
     @rtype: L{UmxTyped}
     """
     return UmxTyped(self.schema())
Example #2
0
 def unmarshaller(self, typed=True):
     """
     Get the appropriate XML decoder.
     @return: Either the (basic|typed) unmarshaller.
     @rtype: L{UmxTyped}
     """
     if typed:
         return UmxTyped(self.schema())
     else:
         return UmxBasic()