300件ヒット
[1-100件を表示]
(0.144秒)
別のキーワード
種類
- インスタンスメソッド (240)
- 特異メソッド (24)
- 定数 (24)
- クラス (12)
ライブラリ
-
rexml
/ document (300)
クラス
-
REXML
:: Document (72) -
REXML
:: XMLDecl (216)
キーワード
- << (12)
- == (12)
- DECLARATION (12)
-
DEFAULT
_ VERSION (12) - add (12)
- clone (12)
- default (12)
- dowrite (12)
- encoding (24)
- encoding= (12)
- new (12)
-
node
_ type (12) - nowrite (12)
-
stand
_ alone? (12) - standalone (12)
- standalone= (12)
- version (24)
- version= (12)
- writeencoding (12)
- writethis (12)
-
xml
_ decl (12) - xmldecl (12)
検索結果
先頭5件
-
REXML
:: XMLDecl (26018.0) -
XML 宣言を表すクラス。
...言を表すクラス。
文書から XML 宣言を取り出すには REXML::Document#xml_decl を使います。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<e />
EOS
xml_decl = doc.xml_decl
xml_decl.version......> "UTF-8"
xml_decl.standalone # => "yes"
xml_decl.writethis # => true
//}
//emlist[XML 宣言を省略した場合の例。][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<e />
EOS
xml_decl = doc.xml_decl
xml_decl.version # => "1.0"
xml_decl.encoding # => "UTF-8"
xml_decl.stand... -
REXML
:: XMLDecl # xmldecl(version , encoding , standalone) -> () (17101.0) -
内容を更新します。
内容を更新します。
@param version バージョン(文字列)
@param encoding エンコーディング(文字列 or nil)
@param standalone スタンドアロン文章かどうか("yes", "no", nil) -
REXML
:: XMLDecl . default -> REXML :: XMLDecl (11117.0) -
XML宣言を含まない文章でデフォルトで使うための XMLDecl オブジェクトを生成して返します。
...XML宣言を含まない文章でデフォルトで使うための
XMLDecl オブジェクトを生成して返します。... -
REXML
:: XMLDecl . new(version = REXML :: XMLDecl :: DEFAULT _ VERSION , encoding = nil , standalone = nil) (11117.0) -
新たな XMLDecl オブジェクトを生成して返します。
...新たな XMLDecl オブジェクトを生成して返します。
version 以外は省略可能です。
@param version バージョン(文字列)
@param encoding エンコーディング(文字列 or nil)
@param standalone スタンドアロン文章かどうか("yes", "no", nil)... -
REXML
:: XMLDecl # clone -> REXML :: XMLDecl (11101.0) -
self を複製します。
self を複製します。 -
REXML
:: XMLDecl :: DEFAULT _ VERSION -> String (11032.0) -
REXML::XMLDecl.new や REXML::XMLDecl.default で の使われるデフォルトのXMLバージョン。
...REXML::XMLDecl.new や REXML::XMLDecl.default で
の使われるデフォルトのXMLバージョン。... -
REXML
:: XMLDecl # ==(other) -> bool (11018.0) -
self と other が同じであるならば真を返します。
...self と other が同じであるならば真を返します。
「同じ」とは REXML::XMLDecl#version, REXML::XMLDecl#encoding,
REXML::XMLDecl#standalone が一致していることを意味します。
@param other 比較対象のオブジェクト... -
REXML
:: XMLDecl # node _ type -> Symbol (11016.0) -
シンボル :xmldecl を返します。
...シンボル :xmldecl を返します。... -
REXML
:: XMLDecl # dowrite -> () (11012.0) -
出力時(REXML::Document#write) に XML 宣言を省略しない よう指示します。
...出力時(REXML::Document#write) に XML 宣言を省略しない
よう指示します。
@see REXML::XMLDecl#nowrite, REXML::XMLDecl#writethis...