protected function writeTag($tagName, array $attributes, $content)
	{
		$xml = '<' . $tagName;
		foreach ($attributes as $attrName => $attrValue)
		{
			$xml .= ' ' . $attrName . '="' . htmlspecialchars($attrValue) . '"';
		}
		if ($content === '')
		{
			$xml .= '/>';
		}
		else
		{
			$xml .= '>' . $content . '</' . $tagName . '>';
		}

		return $xml;
	}
protected function writeTag($tagName, array $attributes, $content)
	{
		$xml = '<' . $tagName;
		foreach ($attributes as $attrName => $attrValue)
		{
			$xml .= ' ' . $attrName . '="' . htmlspecialchars($attrValue) . '"';
		}
		if ($content === '')
		{
			$xml .= '/>';
		}
		else
		{
			$xml .= '>' . $content . '</' . $tagName . '>';
		}

		return $xml;
	}
protected function writeTag ( $ tagName , array $ attributes , $ content ) { $ xml = '<' . $ tagName ; foreach ( $ attributes as $ attrName => $ attrValue ) { $ xml .= ' ' . $ attrName . '="' . htmlspecialchars ( $ attrValue ) . '"' ; } if ( $ content === '' ) { $ xml .= '/>' ; } else { $ xml .= '>' . $ content . '</' . $ tagName . '>' ; } return $ xml ; }
Serialize given tag to XML

@param  string $tagName
@param  array  $attributes
@param  string $content
@return string
Serialize given tag to XML