PHP 8.2.31
Preview: root_node-i.yaml Size: 1.24 KB
//proc/thread-self/root/opt/alt/ruby18/share/ri/1.8/system/REXML/Element/root_node-i.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Evaluates to the root node of the document that this element belongs to. If this element doesn't belong to a document, but does belong to another Element, the parent's root will be returned, until the earliest ancestor is found.
- !ruby/struct:SM::Flow::P 
  body: "Note that this is not the same as the document element. In the following example, <a> is the document element, and the root node is the parent node of the document element. You may ask yourself why the root node is useful: consider the doctype and XML declaration, and any processing instructions before the document element... they are children of the root node, or siblings of the document element. The only time this isn't true is when an Element is created that is not part of any Document. In this case, the ancestor that has no parent acts as the root node."
- !ruby/struct:SM::Flow::VERB 
  body: " d = Document.new '&lt;a&gt;<b>&lt;c/&gt;</b>&lt;/a&gt;'\n a = d[1] ; c = a[1][1]\n d.root_node == d   # TRUE\n a.root_node        # namely, d\n c.root_node        # again, d\n"
full_name: REXML::Element#root_node
is_singleton: false
name: root_node
params: ()
visibility: public

Directory Contents

Dirs: 0 × Files: 43

Name Size Perms Modified Actions
1.30 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
686 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.01 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
983 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.00 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
252 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
256 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
3.23 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
453 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
262 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.07 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
935 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
737 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
324 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
290 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.38 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.28 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
369 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
601 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
673 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
312 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
601 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
287 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
208 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
176 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
274 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.04 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
182 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.96 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
552 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
180 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
527 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
575 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
512 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
170 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.24 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.47 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.03 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
253 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
921 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
1.74 KB lrw-r--r-- 2023-07-26 13:47:46
Edit Download
172 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download
201 B lrw-r--r-- 2023-07-26 13:47:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).