renders this object as MusicXML

@return string MusicXML representation of the object
14894
function toMusicXML() {
		$out  = '';
		$out .= '<barline';
		if (isset($this->location)) {
			$out .= ' location="'.$this->location.'"';
		}

		$out .= '>';
		if (isset($this->barStyle)) {
			$out .= '<bar-style>'.$this->barStyle.'</bar-style>';
		}

		if (!empty($this->segno)) {
			$out .= '<segno/>';
		}
		if (!empty($this->coda)) {
			$out .= '<coda/>';
		}
		if (!empty($this->fermata)) {
			$out .= '<fermata/>';
		}

		if (isset($this->footnote)) {
			$out .= '<footnote>'.$this->footnote.'</footnote>';
		}

		if (isset($this->ending)) {
			$out .= $this->ending->toMusicXML();
		}

		if (isset($this->repeat)) {
			$out .= $this->repeat->toMusicXML();
		}

		$out .= '</barline>';
		return $out;
	}
917133
public function toXML()
    {
        $namespace = 'tns';
        $writer = new XMLWriter();
        $writer->openMemory();
        $writer->setIndent(true);
        $writer->setIndentString('    ');
        $writer->startElementNs($namespace, 'Porez', null);
        if ($this->getName()) {
            $writer->writeElementNs($namespace, 'Naziv', null, $this->getName());
        }
        $writer->writeElementNs($namespace, 'Stopa', null, $this->getRate());
        $writer->writeElementNs($namespace, 'Osnovica', null, $this->getBaseValue());
        $writer->writeElementNs($namespace, 'Iznos', null, $this->getValue());
        $writer->endElement();

        return $writer->outputMemory();
    }
1350939
public function toString() {
		Theme::singleton()->updateElementClasses( $this );
		if ( $this->isInfusable() ) {
			$this->ensureInfusableId();
		}
		return parent::toString();
	}
1076155
public function toArray()
    {
        $result                 = parent::toArray();
        $result['title']        = $this->title;
        $result['description']  = $this->description;
        $result['musicUrl']     = $this->musicUrl;
        $result['hQMusicUrl']   = $this->hQMusicUrl;
        $result['thumbMediaId'] = $this->thumbMediaId;

        return $result;
    }
114688
function toMusicXML() {
        $out  = '';
        $out .= '<tuplet';
        $out .= ' bracket="'.$this->bracket.'"';
        $out .= ' number="'.$this->number.'"';
        $out .= ' placement="'.$this->placement.'"';
        $out .= ' type="'.$this->type.'"';
        $out .= '/>';
        return $out;
    }
170039
public function render() {
        if (extension_loaded('xml')) {
            $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><' . $this->root . '/>');
            $this->addNode($xml, $this->data);

            return $xml->asXML();
        } else {
            return '<?xml version="1.0" encoding="UTF-8"><error>xml extension is not installed</error>';
        }
    }
367523
public static function getSettingsXml()
    {
        $strCrLf = "\r\n";

        $strToReturn = sprintf('<codegen>%s', $strCrLf);
        $strToReturn .= sprintf('	<name application="%s"/>%s', Codegen::$ApplicationName, $strCrLf);
        $strToReturn .= sprintf('	<render preferredRenderMethod="%s"/>%s', Codegen::$PreferredRenderMethod,
            $strCrLf);
        $strToReturn .= sprintf('	<dataSources>%s', $strCrLf);
        foreach (Codegen::$CodeGenArray as $objCodeGen) {
            $strToReturn .= $strCrLf . $objCodeGen->getConfigXml();
        }
        $strToReturn .= sprintf('%s	</dataSources>%s', $strCrLf, $strCrLf);
        $strToReturn .= '</codegen>';

        return $strToReturn;
    }
498241
public function serializeToXml()
    {
        $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><BucketUserQos></BucketUserQos>');
        $xml->addChild('StorageCapacity', strval($this->storageCapacity));
        return $xml->asXML();
    }
1150460
private function attributesToXml() {
        $attributes = array();

        foreach (self::$properties[get_class($this)] as $name => $info) {
            if(!$info['attribute']) {
                continue;
            }

            if (!array_key_exists($name, $this->values)) {
                continue;
            }

            $attributes[] = self::attributeToXml($info['attributeName'], $this->values[$name]);
        }

        return join('', $attributes);
    }
880572
public function getXml()
    {
		$res  = '<widget widgetTitle="'.htmlspecialchars($this->widgetTitle).'" widgetName="'.htmlspecialchars($this->widgetName).'">'."\n";
		$res .= "<![CDATA[\n".serialize($this->getParams())."\n]]>\n";
		$res .= '</widget>'."\n";
		return $res;
	}
583931
public function toMusicXML() {
        if ($this->isHeightless()) {
            throw new PitchHeightlessAsXMLException();
        }

        $out = '<pitch>';

        $out .= '<step>' . $this->step . '</step>';
        $out .= '<alter>' . $this->alter . '</alter>';
        $out .= '<octave>' . $this->octave . '</octave>';

        $out .= '</pitch>';

        return $out;
    }
1302168
public function toString()
    {
        if (empty($this->stringRepresentation)) {
            $this->stringRepresentation = sprintf('%s%s_%s', static::MESSAGE_TO_STRING_PREFIX, $this->getSourceId(), $this->getResourceId());
        }
        return $this->stringRepresentation;
    }
2285
public function serializeToXml()
    {
        $xml = new \SimpleXMLElement('<?xml version="1.0" encoding="utf-8"?><WebsiteConfiguration></WebsiteConfiguration>');
        $index_document_part = $xml->addChild('IndexDocument');
        $error_document_part = $xml->addChild('ErrorDocument');
        $index_document_part->addChild('Suffix', $this->indexDocument);
        $error_document_part->addChild('Key', $this->errorDocument);
        return $xml->asXML();
    }
999261
public function render()
    {
        $xml = new SimpleXMLElement(
            '<?xml version="1.0" encoding="UTF-8" ?>
            <rss version="2.0"
                xmlns:content="http://purl.org/rss/1.0/modules/content/"
                xmlns:wfw="http://wellformedweb.org/CommentAPI/"
                xmlns:dc="http://purl.org/dc/elements/1.1/"
                xmlns:atom="http://www.w3.org/2005/Atom"
                xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
                xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
            />',
            LIBXML_NOERROR | LIBXML_ERR_NONE | LIBXML_ERR_FATAL
        );

        foreach ($this->channels as $channel) {
            $toDom = dom_import_simplexml($xml);
            $fromDom = dom_import_simplexml($channel->asXML());
            $toDom->appendChild($toDom->ownerDocument->importNode($fromDom, true));
        }

        $dom = new \DOMDocument('1.0', 'UTF-8');
        $dom->appendChild($dom->importNode(dom_import_simplexml($xml), true));
        $dom->formatOutput = true;

        return $dom->saveXML();
    }
92026
public function to_xml(){
        $str= "<update ";
		$str .= 'status="'.$this->data['action_table_type'].'" ';
		$str .= 'id="'.$this->data['dataId'].'" ';
		$str .= 'parent="'.$this->get_parent_id().'"';
		$str .= '>';
		$str .= $this->child->to_xml();
		$str .= '</update>';
        return $str;
	}
256754
public function getMetaData(): string
    {
        return Helper::createMetaDataXml($this->itemId, "-1", [
            "res"               =>  $this->uri,
            "upnp:albumArtURI"  =>  $this->albumArt,
            "dc:title"          =>  $this->title,
            "upnp:class"        =>  "object.item.audioItem.musicTrack",
            "dc:creator"        =>  $this->artist,
            "upnp:album"        =>  $this->album,
        ]);
    }
1244291
function toMusicXML() {
        $out  = '';
        $out .= '<accent';
        if (!empty($this->placement)) {
	        $out .= ' placement="'.$this->placement.'"';
	    }
        if (!empty($this->type)) {
	        $out .= ' type="'.$this->type.'"';
	    }
        if (!empty($this->defaultX)) {
	        $out .= ' default-x="'.$this->defaultX.'"';
	    }
        if (!empty($this->defaultY)) {
	        $out .= ' default-y="'.$this->defaultY.'"';
	    }

        $out .= '/>';
        return $out;
    }