code: def WriteXml(self, w, option, elementName=None):
  		
  		if elementName == None:
  			x = w.createElement(self.propMoMeta.xmlAttribute)
  		else:
  			x = w.createElement(elementName)
  		for at in UcsUtils.GetUcsPropertyMetaAttributeList(self.classId):
  			atMeta = UcsUtils.GetUcsMethodMeta(self.classId, at)
  			if (atMeta.io == "Output"):
  				continue
  			if atMeta.isComplexType:
  				if (getattr(self, at) != None):
  					x.appendChild(self.__dict__[at].WriteXml(w, option, UcsUtils.WordL(at)))
  			elif (getattr(self, at) != None):
  				x.setAttribute(atMeta.xmlAttribute, getattr(self, at))
  		x_child = self.childWriteXml(w, option)
  		for xc in x_child:
  			if (xc != None):
  				x.appendChild(xc)
  		return x
docs: Method writes the xml representation of the managed object.