public function SerializeClass($ObjectInstance, $ClassName)
 {
     Serializer::$Data .= "<" . $ClassName . ">";
     $Class = new ReflectionClass($ClassName);
     $ClassArray = array($ObjectInstance);
     $Properties = $Class->getProperties();
     $i = 0;
     foreach ($ClassArray as $ClassMember) {
         $prpName = $Properties[$i]->getName();
         Serializer::$Data .= "<" . $prpName . ">";
         $prpType = gettype($ClassMember);
         if ($prpType == 'object') {
             $serializerinstance = new Serializer();
             $serializerinstance->SerializeClass($ClassMember, get_class($ClassMember));
         }
         if ($prpType == 'array') {
             $this->GetaArray($ClassMember);
         } else {
             Serializer::$Data .= $ClassMember;
         }
         Serializer::$Data .= "</" . $prpName . ">";
         $i++;
     }
     Serializer::$Data .= "</" . $ClassName . ">";
     return Serializer::$Data;
 }