Example #1
0
	def _Int(self, oNode, DATA):
		"""
		DATA is an xml node containing a string that represents an integer
		"""
		if DATA.text == None:
			return None
		else:
			return  NativeToNative_Convertor._Int(self, oNode, DATA.text)
Example #2
0
	def _Int(self, oNode, DATA):
		DATA =  NativeToNative_Convertor._Int(self, oNode, DATA)
		elem = Element(oNode.Name)
		elem.text = str(DATA)
		return elem
Example #3
0
	def _Bool(self, oNode, DATA):
		DATA =  NativeToNative_Convertor._Int(self, oNode, DATA)
		elem = Element(oNode.Name)
		elem.text = "1" if DATA else "0"
		return elem