別のキーワード
ライブラリ
-
rexml
/ document (12)
クラス
-
REXML
:: DocType (12)
検索結果
-
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (18125.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}...