99件ヒット
[1-99件を表示]
(0.164秒)
トップページ > :REXML::XMLDecl#standalone
別のキーワード
種類
- インスタンスメソッド (77)
- クラス (11)
- 特異メソッド (11)
ライブラリ
-
rexml
/ document (99)
クラス
-
REXML
:: Document (22) -
REXML
:: XMLDecl (66)
キーワード
- == (11)
- XMLDecl (11)
- encoding (11)
- new (11)
-
stand
_ alone? (11) - standalone (11)
- standalone= (11)
- version (11)
- xmldecl (11)
検索結果
先頭5件
-
REXML
:: XMLDecl # standalone -> String | nil (36101.0) -
スタンドアロン文書であるかどうかを "yes" "no" で 返します。
スタンドアロン文書であるかどうかを "yes" "no" で
返します。
nil(省略)を返す場合もあります。 -
REXML
:: XMLDecl # standalone=(value) (30101.0) -
スタンドアロン文書であるかどうかを "yes" "no" で設定します。
スタンドアロン文書であるかどうかを "yes" "no" で設定します。
この属性を省略したい場合は nil を指定します。
@param value 設定値(文字列) -
REXML
:: XMLDecl (23024.0) -
XML 宣言を表すクラス。
...xml/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 # => "1.0"
xml_decl.encoding # => "UTF-8"
xml_decl.standalone # => "yes"
xml_decl.writethis # => true
//}
//emlist[XML 宣言を省略した......ocument'
doc = REXML::Document.new(<<EOS)
<e />
EOS
xml_decl = doc.xml_decl
xml_decl.version # => "1.0"
xml_decl.encoding # => "UTF-8"
xml_decl.standalone # => nil
xml_decl.writethis # => false
//}
//emlist[XML 宣言が encoding 属性を持たない場合の例][ruby]{
require 'rexml/document'
d......oc = REXML::Document.new(<<EOS)
<?xml version="1.0" ?>
<e />
EOS
xml_decl = doc.xml_decl
xml_decl.version # => "1.0"
xml_decl.encoding # => "UTF-8"
xml_decl.standalone # => nil
xml_decl.writethis # => true
//}... -
REXML
:: XMLDecl . new(version = REXML :: XMLDecl :: DEFAULT _ VERSION , encoding = nil , standalone = nil) (21208.0) -
新たな XMLDecl オブジェクトを生成して返します。
...新たな XMLDecl オブジェクトを生成して返します。
version 以外は省略可能です。
@param version バージョン(文字列)
@param encoding エンコーディング(文字列 or nil)
@param standalone スタンドアロン文章かどうか("yes", "no", nil)... -
REXML
:: XMLDecl # xmldecl(version , encoding , standalone) -> () (21107.0) -
内容を更新します。
...内容を更新します。
@param version バージョン(文字列)
@param encoding エンコーディング(文字列 or nil)
@param standalone スタンドアロン文章かどうか("yes", "no", nil)... -
REXML
:: XMLDecl # ==(other) -> bool (21030.0) -
self と other が同じであるならば真を返します。
...self と other が同じであるならば真を返します。
「同じ」とは REXML::XMLDecl#version, REXML::XMLDecl#encoding,
REXML::XMLDecl#standalone が一致していることを意味します。
@param other 比較対象のオブジェクト... -
REXML
:: XMLDecl # stand _ alone? -> String | nil (21001.0) -
スタンドアロン文書であるかどうかを "yes" "no" で 返します。
スタンドアロン文書であるかどうかを "yes" "no" で
返します。
nil(省略)を返す場合もあります。 -
REXML
:: Document # encoding -> String (12.0) -
XML 宣言に含まれている XML 文書のエンコーディングを返します。
...宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.encoding # => "UTF-8"
//}... -
REXML
:: Document # version -> String (12.0) -
XML 宣言に含まれている XML 文書のバージョンを返します。
...XML 宣言を持たない場合はデフォルトの値
(REXML::XMLDecl.defaultで宣言されているもの)を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<e />
EOS
doc.version # => "1.0"
//}...