<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_by_API%2Forg.w3c.dom%2FNodeList</id>
		<title>Java by API/org.w3c.dom/NodeList - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java_by_API%2Forg.w3c.dom%2FNodeList"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/org.w3c.dom/NodeList&amp;action=history"/>
		<updated>2026-04-24T13:36:25Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_by_API/org.w3c.dom/NodeList&amp;diff=266&amp;oldid=prev</id>
		<title> в 17:43, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/org.w3c.dom/NodeList&amp;diff=266&amp;oldid=prev"/>
				<updated>2010-05-31T17:43:48Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 17:43, 31 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java_by_API/org.w3c.dom/NodeList&amp;diff=267&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java_by_API/org.w3c.dom/NodeList&amp;diff=267&amp;oldid=prev"/>
				<updated>2010-05-31T14:15:41Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== NodeList: getLength() ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.io.File;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
import javax.xml.parsers.DocumentBuilder;&lt;br /&gt;
import javax.xml.parsers.DocumentBuilderFactory;&lt;br /&gt;
import javax.xml.parsers.ParserConfigurationException;&lt;br /&gt;
import org.w3c.dom.Document;&lt;br /&gt;
import org.w3c.dom.Element;&lt;br /&gt;
import org.w3c.dom.Node;&lt;br /&gt;
import org.w3c.dom.NodeList;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] args) throws IOException, ParserConfigurationException,&lt;br /&gt;
      org.xml.sax.SAXException {&lt;br /&gt;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();&lt;br /&gt;
    factory.setIgnoringComments(true);&lt;br /&gt;
    factory.setCoalescing(true); // Convert CDATA to Text nodes&lt;br /&gt;
    factory.setNamespaceAware(false); // No namespaces: this is default&lt;br /&gt;
    factory.setValidating(false); // Don&amp;quot;t validate DTD: also default&lt;br /&gt;
    DocumentBuilder parser = factory.newDocumentBuilder();&lt;br /&gt;
    Document document = parser.parse(new File(args[0]));&lt;br /&gt;
    NodeList sections = document.getElementsByTagName(&amp;quot;sect1&amp;quot;);&lt;br /&gt;
    int numSections = sections.getLength();&lt;br /&gt;
    for (int i = 0; i &amp;lt; numSections; i++) {&lt;br /&gt;
      Element section = (Element) sections.item(i); // A &amp;lt;sect1&amp;gt;&lt;br /&gt;
      Node title = section.getFirstChild();&lt;br /&gt;
      while (title != null &amp;amp;&amp;amp; title.getNodeType() != Node.ELEMENT_NODE)&lt;br /&gt;
        title = title.getNextSibling();&lt;br /&gt;
      if (title != null)&lt;br /&gt;
        System.out.println(title.getFirstChild().getNodeValue());&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== NodeList: item(int index) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
import java.io.File;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
import javax.xml.parsers.DocumentBuilder;&lt;br /&gt;
import javax.xml.parsers.DocumentBuilderFactory;&lt;br /&gt;
import javax.xml.parsers.ParserConfigurationException;&lt;br /&gt;
import org.w3c.dom.Document;&lt;br /&gt;
import org.w3c.dom.Element;&lt;br /&gt;
import org.w3c.dom.Node;&lt;br /&gt;
import org.w3c.dom.NodeList;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
  public static void main(String[] args) throws IOException, ParserConfigurationException,&lt;br /&gt;
      org.xml.sax.SAXException {&lt;br /&gt;
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();&lt;br /&gt;
    factory.setIgnoringComments(true);&lt;br /&gt;
    factory.setCoalescing(true); // Convert CDATA to Text nodes&lt;br /&gt;
    factory.setNamespaceAware(false); // No namespaces: this is default&lt;br /&gt;
    factory.setValidating(false); // Don&amp;quot;t validate DTD: also default&lt;br /&gt;
    DocumentBuilder parser = factory.newDocumentBuilder();&lt;br /&gt;
    Document document = parser.parse(new File(args[0]));&lt;br /&gt;
    NodeList sections = document.getElementsByTagName(&amp;quot;sect1&amp;quot;);&lt;br /&gt;
    int numSections = sections.getLength();&lt;br /&gt;
    for (int i = 0; i &amp;lt; numSections; i++) {&lt;br /&gt;
      Element section = (Element) sections.item(i); // A &amp;lt;sect1&amp;gt;&lt;br /&gt;
      Node title = section.getFirstChild();&lt;br /&gt;
      while (title != null &amp;amp;&amp;amp; title.getNodeType() != Node.ELEMENT_NODE)&lt;br /&gt;
        title = title.getNextSibling();&lt;br /&gt;
      if (title != null)&lt;br /&gt;
        System.out.println(title.getFirstChild().getNodeValue());&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>