Server IP : 66.29.132.122 / Your IP : 18.118.205.55 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/thread-self/root/proc/thread-self/root/proc/self/root/opt/alt/ruby18/share/ri/1.8/system/REXML/Element/ |
Upload File : |
--- !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 '<a><b><c/></b></a>'\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