48件ヒット
[1-48件を表示]
(0.014秒)
種類
- インスタンスメソッド (24)
- クラス (12)
- ライブラリ (12)
ライブラリ
-
rexml
/ document (36)
クラス
-
REXML
:: Instruction (24)
キーワード
- Instruction (12)
- rss (12)
- target (12)
検索結果
先頭4件
-
REXML
:: Instruction # content -> String | nil (18125.0) -
XML 処理命令の内容を返します。
...ersion="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
doc[4].target # => "foobar"
doc[4].content # => nil
//}... -
rss (102.0)
-
RSS を扱うためのライブラリです。
...ation/
* Content モジュール http://web.resource.org/rss/1.0/modules/content/
* Trackback モジュール http://madskills.com/public/xml/rss/module/trackback/
* Image モジュール http://web.resource.org/rss/1.0/modules/image/
をサポートしています。
ただし,Content モジ......ュールは content:encoded しかサポートしていません.
=== パース
RSS をパースしたい場合は RSS::Parser クラスを使います。
RSS::Parser.parse は String の RSSを パースします(使用するXMLパー
サによっては File や IO オブジェクトなどで......られた引数によって初期化されます.
Hash:
{
:href => "...",
:type => "...",
:title => "...",
:media => "...",
:charset => "...",
:alternate => "...",
}
連想配列:
[
[:href, "..."],
[:type, "..."],
[:title, "..."],
[:media, "..."],... -
REXML
:: Instruction (18.0) -
XML 処理命令(XML Processing Instruction, XML PI)を表すクラス。
...equire 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
//}... -
REXML
:: Instruction # target -> String (18.0) -
XML 処理命令のターゲットを返します。
...quire 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\""
//}...