るりまサーチ

最速Rubyリファレンスマニュアル検索!
2926件ヒット [1-100件を表示] (0.097秒)
トップページ > クエリ:i[x] > クエリ:-[x] > ライブラリ:rexml[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. csv to_i

キーワード

検索結果

<< 1 2 3 ... > >>

REXML::Security.entity_expansion_text_limit -> Integer (15331.0)

実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。

...せ、処理を中断します。

実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。

デフォルトは 10240 (byte) です。

@see REXML::Document.entity_expansion_text_limit=,
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/...

REXML::Security.entity_expansion_limit -> Integer (15301.0)

実体参照の展開回数の上限を返します。

...書(REXML::Document)ごとの展開回数がこの値を越えると
例外を発生させ、処理を中断します。

実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。

デフォルトは 10000 です。

@see REXML::Document.entity_expansion_limit...

REXML::Security.entity_expansion_text_limit=(val) (15231.0)

実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。

...させ、処理を中断します。

実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。

デフォルトは 10240 (byte) です。

@see REXML::Document.entity_expansion_text_limit
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/...

REXML::Node#index_in_parent -> Insteger (12407.0)

self の親における index を返します。

...self の親における index を返します。

返される index は 1-origin です。

ノードが親を持たない(REXML::Child でない)場合は例外を発生させます。...

REXML::Document.entity_expansion_text_limit -> Integer (12331.0)

実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。

...トは 10240 (byte) です。

このメソッドは Ruby 2.1 から deprecated になりました。
REXML
::Security.entity_expansion_text_limit を使ってください。

@see REXML::Document.entity_expansion_text_limit=,
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/...

絞り込み条件を変える

REXML::Document.entity_expansion_limit -> Integer (12301.0)

実体参照の展開回数の上限を返します。

...実体参照の展開回数の上限を返します。

XML 文書(REXML::Document)ごとの展開回数がこの値を越えると
例外を発生させ、処理を中断します。

実体参照の展開処理を使った DoS 攻撃に対抗するための
仕組みです。

デフォルトは 1...
...0000 です。

このメソッドは Ruby 2.1 から deprecated になりました。
REXML
::Security.entity_expansion_limit を使ってください。

@see REXML::Document.entity_expansion_limit=...

REXML::Document.entity_expansion_text_limit=(val) (12231.0)

実体参照の展開による文字列の増分(テキストのバイト数)の 最大値を指定します。

...トは 10240 (byte) です。

このメソッドは Ruby 2.1 から deprecated になりました。
REXML
::Security.entity_expansion_text_limit= を使ってください。

@see REXML::Document.entity_expansion_text_limit
http://www.ruby-lang.org/ja/news/2013/02/22/rexml-dos-2013-02-22/...

REXML::Attributes#each_attribute {|attribute| ... } -> () (9301.0)

各属性に対しブロックを呼び出します。

...各属性に対しブロックを呼び出します。

個々の属性は REXML::Attribute オブジェクトで渡されます。

//emlist[][ruby]{
require 'rexml/document'

doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a fo...
...o:att='1' bar:att='2' att='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first

a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}...

REXML::Attributes#get_attribute(name) -> Attribute | nil (9301.0)

name という名前の属性を取得します。

...得します。

name という名前を持つ属性がない場合は nil を返します。

@param name 属性名(文字列)
@see REXML::Attributes#[]

//emlist[][ruby]{
require 'rexml/document'

doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://e...
...xample.org/bar">
<a foo:att='1' bar:att='2' att='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first

a.attributes.get_attribute("att") # => att='&lt;'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}...

REXML::Attributes#get_attribute_ns(namespace, name) -> REXML::Attribute | nil (9301.0)

namespace と name で特定される属性を返します。

...る属性を返します。

namespace で名前空間を、 name で prefix を含まない属性名を
指定します。

指定された属性が存在しない場合は nil を返します。

XML プロセッサが prefix を置き換えてしまった場合でも、このメソッドを
使...
...URI, 文字列)
@param name 属性名(文字列)

//emlist[][ruby]{
require 'rexml/document'

doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").fir...
...st

a.attributes.get_attribute_ns("", "att") # => att='&lt;'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>