154件ヒット
[1-100件を表示]
(0.036秒)
種類
- インスタンスメソッド (88)
- ライブラリ (44)
- クラス (11)
- 特異メソッド (11)
ライブラリ
-
rexml
/ document (99) -
rexml
/ streamlistener (11)
クラス
-
REXML
:: Document (11) -
REXML
:: XMLDecl (77)
モジュール
キーワード
- XMLDecl (11)
- encoding (11)
- encoding= (11)
- new (11)
-
rexml
/ parsers / pullparser (11) -
rexml
/ parsers / sax2parser (11) -
rexml
/ parsers / streamparser (11) -
rexml
/ parsers / ultralightparser (11) -
stand
_ alone? (11) - standalone (11)
- standalone= (11)
-
xml
_ decl (11)
検索結果
先頭5件
-
REXML
:: XMLDecl # xmldecl(version , encoding , standalone) -> () (21113.0) -
内容を更新します。
...内容を更新します。
@param version バージョン(文字列)
@param encoding エンコーディング(文字列 or nil)
@param standalone スタンドアロン文章かどうか("yes", "no", nil)... -
REXML
:: StreamListener # xmldecl(version , encoding , standalone) -> () (18113.0) -
XML宣言をパースしたときに呼び出されるコールバックメソッドです。
...ールバックメソッドです。
version, encoding, standalone はXML宣言内で
対応する構成要素が省略されている場合には nil が渡されます。
@param version 宣言されているバージョンが文字列で渡されます。
@param encoding 宣言されているエ......で渡されます。
@param standalone スタンドアロン文書であるかどうかが "yes" "no" で渡されます
=== 例
<?xml version="1.0" encoding="utf-8"?>
というXML宣言に対しては
version: "1.0"
encoding: "utf-8"
standalone: nil
という引数が渡されます。... -
REXML
:: XMLDecl (6012.0) -
XML 宣言を表すクラス。
...= 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'
doc = 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) (3331.0) -
新たな XMLDecl オブジェクトを生成して返します。
...新たな XMLDecl オブジェクトを生成して返します。
version 以外は省略可能です。
@param version バージョン(文字列)
@param encoding エンコーディング(文字列 or nil)
@param standalone スタンドアロン文章かどうか("yes", "no", nil)... -
REXML
:: XMLDecl # stand _ alone? -> String | nil (3108.0) -
スタンドアロン文書であるかどうかを "yes" "no" で 返します。
...スタンドアロン文書であるかどうかを "yes" "no" で
返します。
nil(省略)を返す場合もあります。... -
REXML
:: XMLDecl # standalone -> String | nil (3108.0) -
スタンドアロン文書であるかどうかを "yes" "no" で 返します。
...スタンドアロン文書であるかどうかを "yes" "no" で
返します。
nil(省略)を返す場合もあります。... -
REXML
:: XMLDecl # encoding -> String | nil (3107.0) -
設定されているエンコーディングの名前を文字列で返します。
...設定されているエンコーディングの名前を文字列で返します。
エンコーディングが指定されていない(デフォルトの UTF-8 とみなされます)
場合は nil を返します。... -
REXML
:: XMLDecl # encoding=(enc) (3018.0) -
エンコーディングを enc に設定します。
...エンコーディングを enc に設定します。
enc に nil を渡すと XML 宣言では encoding が
指定されていない(デフォルトで UTF-8 が使われる)
ことになります。
@param enc エンコーディング(文字列 or nil)
@see REXML::XMLDecl#encoding=... -
REXML
:: XMLDecl # standalone=(value) (3006.0) -
スタンドアロン文書であるかどうかを "yes" "no" で設定します。
...スタンドアロン文書であるかどうかを "yes" "no" で設定します。
この属性を省略したい場合は nil を指定します。
@param value 設定値(文字列)... -
REXML
:: Document # xml _ decl -> REXML :: XMLDecl | nil (208.0) -
文書の XML 宣言を返します。
...文書の XML 宣言を返します。
文書が XML 宣言を持たない場合は nil を返します。...