XML_Util::createStartElement

XML_Util::createStartElement() – 開始要素を作成する

Synopsis

require_once 'XML/Util.php';

string XML_Util::createStartElement ( string $qname , array $attributes = array() , string $namespaceUri = = null )

Description

ネーム空間と属性を備えた要素の開始をもし必要ならば、 'xmlns'を加えて作成します。 (<pear foo="bar">)

Parameter

  • string $qname - 有修飾タグ名です。

  • array $attributes - 属性の連想配列です。

  • string $namespaceUri - xmlns属性が必要な時に追加する名前空間URIです。

Return value

string 開くXMLタグです。

Note

This function should be called statically.