(No version information available, might be only in CVS)
DomAttribute->value — 属性の値を返す
この関数は属性の値を返します。
例1 ノードの全ての属性を取得する
<?php
include("example.inc");
if (!$dom = domxml_open_mem($xmlstr)) {
echo "Error while parsing the document\n";
exit;
}
$root = $dom->document_element();
$attrs = $root->attributes();
echo 'Attributes of ' . $root->node_name() . "\n";
foreach ($attrs as $attribute) {
echo ' - ' . $attribute->name . ' : ' . $attribute->value . "\n";
}
?>
上の例の出力は以下となります。
Attributes of chapter - language : en
Returns the value of the attribute.
DOMAttr の value プロパティを使用してください。
NPO法人の設立(東京・大阪) 東京や大阪などNPO法人を設立する場合の注意点等を紹介
不動産・賃貸・マンション 不動産・賃貸・マンションに関する用語集です。
堺市の入院・内科大阪の賃貸探し 大阪で賃貸を探している方は大阪ホームへ
東京の賃貸マンション 東京で賃貸を探すなら東京賃貸.orgへ