{"id":4724,"date":"2021-08-06T09:15:30","date_gmt":"2021-08-06T09:15:30","guid":{"rendered":"https:\/\/www.bearloga.space\/?page_id=4724"},"modified":"2021-08-06T09:15:30","modified_gmt":"2021-08-06T09:15:30","slug":"xml-dom-navigacziya","status":"publish","type":"page","link":"https:\/\/www.bearloga.space\/en\/xml-dom-navigacziya\/","title":{"rendered":"XML DOM \u2014 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0414\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043c\u044b \u0438\u0437\u0443\u0447\u0430\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 DOM, \u043a\u0430\u043a \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c XML-\u043e\u0431\u044a\u0435\u043a\u0442 DOM \u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u044b DOM.&nbsp;\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c, \u043a\u0430\u043a \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0443\u0437\u043b\u0430\u043c\u0438 \u0432 DOM-\u043e\u0431\u044a\u0435\u043a\u0442\u0435.&nbsp;XML DOM \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0443\u0437\u043b\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u043d\u0430\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0443\u0437\u043b\u0430\u043c, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u2014<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>ParentNode<\/li><li>ChildNodes<\/li><li>\u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u0431\u0435\u043d\u043e\u043a<\/li><li>\u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0435\u0431\u0435\u043d\u043e\u043a<\/li><li>NextSibling<\/li><li>PreviousSibling<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0430 \u0441\u0445\u0435\u043c\u0430 \u0434\u0435\u0440\u0435\u0432\u0430 \u0443\u0437\u043b\u043e\u0432, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u0435\u0433\u043e \u0441\u0432\u044f\u0437\u044c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0443\u0437\u043b\u0430\u043c\u0438.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/coderlessons.com\/wp-content\/uploads\/2019\/07\/xml_dom_navigation.jpg\" alt=\"XML DOM Navigation\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">DOM \u2014 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0443\u0437\u0435\u043b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0443\u0437\u0435\u043b \u043a\u0430\u043a \u043e\u0431\u044a\u0435\u043a\u0442 \u0443\u0437\u043b\u0430.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u043f\u0440\u0438\u043c\u0435\u0440<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 (navigate_example.htm) \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 XML (&nbsp;<a target=\"_blank\" href=\"https:\/\/www.tutorialspoint.com\/dom\/node.xml\" rel=\"noreferrer noopener\">node.xml<\/a>&nbsp;) \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 XML DOM.&nbsp;\u0417\u0430\u0442\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 DOM \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c\u0443 \u0443\u0437\u043b\u0443 \u0447\u0435\u0440\u0435\u0437 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u0443\u0437\u0435\u043b \u2014<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n   &lt;body&gt;\n      &lt;script&gt;\n         if (window.XMLHttpRequest) {\n            xmlhttp = new XMLHttpRequest();\n         } else {\n            xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n         }\n         xmlhttp.open(\"GET\",\"\/dom\/node.xml\",false);\n         xmlhttp.send();\n         xmlDoc = xmlhttp.responseXML;\n\n         var y = xmlDoc.getElementsByTagName(\"Employee\")[0];\n         document.write(y.parentNode.nodeName);\n      &lt;\/script&gt;\n   &lt;\/body&gt;\n&lt;\/html&gt;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u0443\u0437\u0435\u043b&nbsp;<em>Employee<\/em>&nbsp;\u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043a \u0441\u0432\u043e\u0435\u043c\u0443 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c\u0443 \u0443\u0437\u043b\u0443.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043a\u0430\u043a&nbsp;<em>navigate_example.html<\/em>&nbsp;\u043d\u0430 \u043f\u0443\u0442\u0438 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 (\u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0438 \u0444\u0430\u0439\u043b&nbsp;<a target=\"_blank\" href=\"https:\/\/www.tutorialspoint.com\/dom\/node.xml\" rel=\"noreferrer noopener\">node.xml<\/a>&nbsp;\u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438 \u0442\u043e\u043c \u0436\u0435 \u043f\u0443\u0442\u0438 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435).&nbsp;\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0443\u0437\u0435\u043b&nbsp;<em>Employee<\/em>&nbsp;, \u0442. \u0415.&nbsp;<em>Company<\/em>&nbsp;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u0435\u0440\u0432\u044b\u0439 \u0440\u0435\u0431\u0435\u043d\u043e\u043a<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f&nbsp;<em>Node<\/em>&nbsp;\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0432\u043e\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0435 \u0438\u043c\u044f, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0432 NodeList.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u043f\u0440\u0438\u043c\u0435\u0440<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 (first_node_example.htm) \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 XML (\u00a0<a target=\"_blank\" href=\"https:\/\/www.tutorialspoint.com\/dom\/node.xml\" rel=\"noreferrer noopener\">node.xml<\/a>\u00a0) \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 DOM XML, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u043c\u0443 \u0443\u0437\u043b\u0443, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 DOM.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n   &lt;body&gt;\n      &lt;script&gt;\n         if (window.XMLHttpRequest) {\n            xmlhttp = new XMLHttpRequest();\n         } else {\n            xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n         }\n         xmlhttp.open(\"GET\",\"\/dom\/node.xml\",false);\n         xmlhttp.send();\n         xmlDoc = xmlhttp.responseXML;\n\n         function get_firstChild(p) {\n            a = p.firstChild;\n\n            while (a.nodeType != 1) {\n               a = a.nextSibling;\n            }\n            return a;\n         }\n         var firstchild = get_firstChild(xmlDoc.getElementsByTagName(\"Employee\")[0]);\n         document.write(firstchild.nodeName);\n      &lt;\/script&gt;\n   &lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>\u0424\u0443\u043d\u043a\u0446\u0438\u044f&nbsp;<em>get_firstChild (p)<\/em>&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u044f \u043f\u0443\u0441\u0442\u044b\u0445 \u0443\u0437\u043b\u043e\u0432.&nbsp;\u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 firstChild \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0443\u0437\u043b\u043e\u0432.<\/li><li><strong>x = get_firstChild (xmlDoc.getElementsByTagName (\u00abEmployee\u00bb) [0])<\/strong>&nbsp;\u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u0443\u0437\u0435\u043b \u0434\u043b\u044f \u0438\u043c\u0435\u043d\u0438 \u0442\u0435\u0433\u0430&nbsp;<em>Employee<\/em>&nbsp;.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0424\u0443\u043d\u043a\u0446\u0438\u044f&nbsp;<em>get_firstChild (p)<\/em>&nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u044f \u043f\u0443\u0441\u0442\u044b\u0445 \u0443\u0437\u043b\u043e\u0432.&nbsp;\u042d\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 firstChild \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430 \u0443\u0437\u043b\u043e\u0432.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>x = get_firstChild (xmlDoc.getElementsByTagName (\u00abEmployee\u00bb) [0])<\/strong>&nbsp;\u0438\u0437\u0432\u043b\u0435\u043a\u0430\u0435\u0442 \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u0443\u0437\u0435\u043b \u0434\u043b\u044f \u0438\u043c\u0435\u043d\u0438 \u0442\u0435\u0433\u0430&nbsp;<em>Employee<\/em>&nbsp;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043a\u0430\u043a&nbsp;<em>first_node_example.htm<\/em>&nbsp;\u043d\u0430 \u043f\u0443\u0442\u0438 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 (\u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0438 \u0444\u0430\u0439\u043b&nbsp;<a target=\"_blank\" href=\"https:\/\/www.tutorialspoint.com\/dom\/node.xml\" rel=\"noreferrer noopener\">node.xml<\/a>&nbsp;\u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438 \u0442\u043e\u043c \u0436\u0435 \u043f\u0443\u0442\u0438 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435).&nbsp;\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u0443\u0437\u0435\u043b&nbsp;<em>Employee,<\/em>&nbsp;\u0442.\u0435.&nbsp;<em>FirstName<\/em>&nbsp;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0440\u0435\u0431\u0435\u043d\u043e\u043a<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f&nbsp;<em>Node<\/em>&nbsp;\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0435 \u0438\u043c\u044f, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0435 \u0432 NodeList.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u043f\u0440\u0438\u043c\u0435\u0440<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 (last_node_example.htm) \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 XML (&nbsp;<a target=\"_blank\" href=\"https:\/\/www.tutorialspoint.com\/dom\/node.xml\" rel=\"noreferrer noopener\">node.xml<\/a>&nbsp;) \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 XML DOM, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u043c\u0443 \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u043c\u0443 \u0443\u0437\u043b\u0443, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0435 xml DOM.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;!DOCTYPE html&gt;\n  &lt;body&gt;\n      &lt;script&gt;\n         if (window.XMLHttpRequest) {\n            xmlhttp = new XMLHttpRequest();\n         } else {\n            xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n         }\n         xmlhttp.open(\"GET\",\"\/dom\/node.xml\",false);\n         xmlhttp.send();\n         xmlDoc = xmlhttp.responseXML;\n\n         function get_lastChild(p) {\n            a = p.lastChild;\n\n            while (a.nodeType != 1){\n               a = a.previousSibling;\n            }\n            return a;\n         }\n         var lastchild = get_lastChild(xmlDoc.getElementsByTagName(\"Employee\")[0]);\n         document.write(lastchild.nodeName);\n      &lt;\/script&gt;\n   &lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043a\u0430\u043a&nbsp;<em>last_node_example.htm<\/em>&nbsp;\u043d\u0430 \u043f\u0443\u0442\u0438 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 (\u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0438 \u0444\u0430\u0439\u043b node.xml \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438 \u0442\u043e\u043c \u0436\u0435 \u043f\u0443\u0442\u0438 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435).&nbsp;\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u0443\u0437\u0435\u043b&nbsp;<em>Employee,<\/em>&nbsp;\u0442. \u0415.&nbsp;<em>Email<\/em>&nbsp;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u0440\u0430\u0442<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f&nbsp;<em>Node<\/em>&nbsp;\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u0442. \u0415. \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0432 NodeList.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u043f\u0440\u0438\u043c\u0435\u0440<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 (nextSibling_example.htm) \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 XML (&nbsp;<a target=\"_blank\" href=\"https:\/\/www.tutorialspoint.com\/dom\/node.xml\" rel=\"noreferrer noopener\">node.xml<\/a>&nbsp;) \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 XML DOM, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0440\u0430\u0437\u0443 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0443\u0437\u043b\u0443, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 xml.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;!DOCTYPE html&gt;\n   &lt;body&gt;\n      &lt;script&gt;\n         if (window.XMLHttpRequest) {\n            xmlhttp = new XMLHttpRequest();\n         }\n         else {\n            xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n         }\n         xmlhttp.open(\"GET\",\"\/dom\/node.xml\",false);\n         xmlhttp.send();\n         xmlDoc = xmlhttp.responseXML;\n\n         function get_nextSibling(p) {\n            a = p.nextSibling;\n\n            while (a.nodeType != 1) {\n               a = a.nextSibling;\n            }\n            return a;\n         }\n         var nextsibling = get_nextSibling(xmlDoc.getElementsByTagName(\"FirstName\")[0]);\n         document.write(nextsibling.nodeName);\n      &lt;\/script&gt;\n   &lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043a\u0430\u043a&nbsp;<em>nextSibling_example.htm<\/em>&nbsp;\u043d\u0430 \u043f\u0443\u0442\u0438 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 (\u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0438 \u0444\u0430\u0439\u043b node.xml \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438 \u0442\u043e\u043c \u0436\u0435 \u043f\u0443\u0442\u0438 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435).&nbsp;\u0412 \u0432\u044b\u0432\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043e\u0434\u043d\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u0443\u0437\u0435\u043b&nbsp;<em>FirstName,<\/em>&nbsp;\u0442.\u0435.&nbsp;<em>LastName<\/em>&nbsp;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0431\u0440\u0430\u0442<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0438\u043c\u0435\u0435\u0442 \u0442\u0438\u043f&nbsp;<em>Node<\/em>&nbsp;\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0434\u043e\u0447\u0435\u0440\u043d\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442, \u0442. \u0415. \u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0432 NodeList.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u043f\u0440\u0438\u043c\u0435\u0440<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 (previoussibling_example.htm) \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 XML (&nbsp;<a target=\"_blank\" href=\"https:\/\/www.tutorialspoint.com\/dom\/node.xml\" rel=\"noreferrer noopener\">node.xml<\/a>&nbsp;) \u0432 \u043e\u0431\u044a\u0435\u043a\u0442 DOM XML, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u0443\u0437\u043b\u0443 before \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0434\u043e\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u0443\u0437\u043b\u0430, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 xml.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;!DOCTYPE html&gt;\n   &lt;body&gt;\n      &lt;script&gt;\n         if (window.XMLHttpRequest)\n         {\n            xmlhttp = new XMLHttpRequest();\n         } else {\n            xmlhttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n         }\n         xmlhttp.open(\"GET\",\"\/dom\/node.xml\",false);\n         xmlhttp.send();\n         xmlDoc = xmlhttp.responseXML;\n\n         function get_previousSibling(p) {\n            a = p.previousSibling;\n\n            while (a.nodeType != 1) {\n               a = a.previousSibling;\n            }\n            return a;\n         }\n\n         prevsibling = get_previousSibling(xmlDoc.getElementsByTagName(\"Email\")[0]);\n         document.write(prevsibling.nodeName);\n      &lt;\/script&gt;\n   &lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u043a\u0430\u043a&nbsp;<em>previoussibling_example.htm<\/em>&nbsp;\u043d\u0430 \u043f\u0443\u0442\u0438 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 (\u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0438 \u0444\u0430\u0439\u043b&nbsp;<a target=\"_blank\" href=\"https:\/\/www.tutorialspoint.com\/dom\/node.xml\" rel=\"noreferrer noopener\">node.xml<\/a>&nbsp;\u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438 \u0442\u043e\u043c \u0436\u0435 \u043f\u0443\u0442\u0438 \u043d\u0430 \u0432\u0430\u0448\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435).&nbsp;\u0412 \u0432\u044b\u0432\u043e\u0434\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u043e\u0434\u043d\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u0443\u0437\u0435\u043b&nbsp;<em>\u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b,<\/em>&nbsp;\u0442.&nbsp;<em>\u0415. ContactNo<\/em>&nbsp;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043c\u044b \u0438\u0437\u0443\u0447\u0430\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 DOM, \u043a\u0430\u043a \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c XML-\u043e\u0431\u044a\u0435\u043a\u0442 DOM \u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u044b DOM.&nbsp;\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[152],"tags":[],"class_list":["post-4724","page","type-page","status-publish","hentry","category-xml-dom"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/pages\/4724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/comments?post=4724"}],"version-history":[{"count":0,"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/pages\/4724\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/media?parent=4724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/categories?post=4724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bearloga.space\/en\/wp-json\/wp\/v2\/tags?post=4724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}