string XML_Util::createTag (
string $qname
, array $attributes = array()
, string $content
= = null
, string $namespaceUri
= = null
, integer $replaceEntities = XML_UTIL_REPLACE_ENTITIES
)
ネーム空間と属性を備えたタグをもし必要ならば、 'xmlns'を加えて作成します。
string $qname
- 有修飾タグ名です。
array $attributes
- 属性の連想配列です。
string $content
- タグの内容の文字列です。
string $namespaceUri
-
xmlns属性が必要な時に追加する名前空間URIです。
integer $replaceEntities
-
内容中のXMLエンティティを交換するかどうかを指定します。
CDataセクションにそれを埋め込むべきか、
あるいはそれを手をつけないでおくべきかを指定します。
可能な値はFALSE、
XML_UTIL_REPLACE_ENTITIESあるいはXML_UTIL_CDATA_SECTIONです。
string XMLタグです。
This function should be called statically.