public function toXMLString()
 {
     $str = '';
     if ($this->Name != null) {
         $str .= '<ebl:Name>' . PPUtils::escapeInvalidXmlCharsRegex($this->Name) . '</ebl:Name>';
     }
     if ($this->Number != null) {
         $str .= '<ebl:Number>' . PPUtils::escapeInvalidXmlCharsRegex($this->Number) . '</ebl:Number>';
     }
     if ($this->Quantity != null) {
         $str .= '<ebl:Quantity>' . PPUtils::escapeInvalidXmlCharsRegex($this->Quantity) . '</ebl:Quantity>';
     }
     if ($this->Tax != null) {
         $str .= '<ebl:Tax';
         $str .= $this->Tax->toXMLString();
         $str .= '</ebl:Tax>';
     }
     if ($this->Amount != null) {
         $str .= '<ebl:Amount';
         $str .= $this->Amount->toXMLString();
         $str .= '</ebl:Amount>';
     }
     if ($this->EbayItemPaymentDetailsItem != null) {
         $str .= '<ebl:EbayItemPaymentDetailsItem>';
         $str .= $this->EbayItemPaymentDetailsItem->toXMLString();
         $str .= '</ebl:EbayItemPaymentDetailsItem>';
     }
     if ($this->PromoCode != null) {
         $str .= '<ebl:PromoCode>' . PPUtils::escapeInvalidXmlCharsRegex($this->PromoCode) . '</ebl:PromoCode>';
     }
     if ($this->ProductCategory != null) {
         $str .= '<ebl:ProductCategory>' . PPUtils::escapeInvalidXmlCharsRegex($this->ProductCategory) . '</ebl:ProductCategory>';
     }
     if ($this->Description != null) {
         $str .= '<ebl:Description>' . PPUtils::escapeInvalidXmlCharsRegex($this->Description) . '</ebl:Description>';
     }
     if ($this->ItemWeight != null) {
         $str .= '<ebl:ItemWeight';
         $str .= $this->ItemWeight->toXMLString();
         $str .= '</ebl:ItemWeight>';
     }
     if ($this->ItemLength != null) {
         $str .= '<ebl:ItemLength';
         $str .= $this->ItemLength->toXMLString();
         $str .= '</ebl:ItemLength>';
     }
     if ($this->ItemWidth != null) {
         $str .= '<ebl:ItemWidth';
         $str .= $this->ItemWidth->toXMLString();
         $str .= '</ebl:ItemWidth>';
     }
     if ($this->ItemHeight != null) {
         $str .= '<ebl:ItemHeight';
         $str .= $this->ItemHeight->toXMLString();
         $str .= '</ebl:ItemHeight>';
     }
     if ($this->ItemURL != null) {
         $str .= '<ebl:ItemURL>' . PPUtils::escapeInvalidXmlCharsRegex($this->ItemURL) . '</ebl:ItemURL>';
     }
     if ($this->EnhancedItemData != null) {
         $str .= '<ebl:EnhancedItemData>';
         $str .= $this->EnhancedItemData->toXMLString();
         $str .= '</ebl:EnhancedItemData>';
     }
     if ($this->ItemCategory != null) {
         $str .= '<ebl:ItemCategory>' . PPUtils::escapeInvalidXmlCharsRegex($this->ItemCategory) . '</ebl:ItemCategory>';
     }
     return $str;
 }
 public function toXMLString()
 {
     $str = '';
     if ($this->Name != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:Name>' . $this->Name . '</ebl:Name>';
     }
     if ($this->Number != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:Number>' . $this->Number . '</ebl:Number>';
     }
     if ($this->Quantity != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:Quantity>' . $this->Quantity . '</ebl:Quantity>';
     }
     if ($this->Tax != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //prop containsattribute
         $str .= '<ebl:Tax';
         $str .= $this->Tax->toXMLString();
         $str .= '</ebl:Tax>';
     }
     if ($this->Amount != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //prop containsattribute
         $str .= '<ebl:Amount';
         $str .= $this->Amount->toXMLString();
         $str .= '</ebl:Amount>';
     }
     if ($this->EbayItemPaymentDetailsItem != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:EbayItemPaymentDetailsItem>';
         $str .= $this->EbayItemPaymentDetailsItem->toXMLString();
         $str .= '</ebl:EbayItemPaymentDetailsItem>';
     }
     if ($this->PromoCode != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:PromoCode>' . $this->PromoCode . '</ebl:PromoCode>';
     }
     if ($this->ProductCategory != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:ProductCategory>' . $this->ProductCategory . '</ebl:ProductCategory>';
     }
     if ($this->Description != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:Description>' . $this->Description . '</ebl:Description>';
     }
     if ($this->ItemWeight != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //prop containsattribute
         $str .= '<ebl:ItemWeight';
         $str .= $this->ItemWeight->toXMLString();
         $str .= '</ebl:ItemWeight>';
     }
     if ($this->ItemLength != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //prop containsattribute
         $str .= '<ebl:ItemLength';
         $str .= $this->ItemLength->toXMLString();
         $str .= '</ebl:ItemLength>';
     }
     if ($this->ItemWidth != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //prop containsattribute
         $str .= '<ebl:ItemWidth';
         $str .= $this->ItemWidth->toXMLString();
         $str .= '</ebl:ItemWidth>';
     }
     if ($this->ItemHeight != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //prop containsattribute
         $str .= '<ebl:ItemHeight';
         $str .= $this->ItemHeight->toXMLString();
         $str .= '</ebl:ItemHeight>';
     }
     if ($this->ItemURL != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:ItemURL>' . $this->ItemURL . '</ebl:ItemURL>';
     }
     if ($this->EnhancedItemData != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<ebl:EnhancedItemData>';
         $str .= $this->EnhancedItemData->toXMLString();
         $str .= '</ebl:EnhancedItemData>';
     }
     if ($this->ItemCategory != null) {
         //prop is not a collection
         //prop not complex
         //prop is not value
         $str .= '<ebl:ItemCategory>' . $this->ItemCategory . '</ebl:ItemCategory>';
     }
     return $str;
 }