http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Xml.XPath/XPathNodeType&feed=atom&action=history
Csharp/C Sharp by API/System.Xml.XPath/XPathNodeType - История изменений
2024-03-28T12:08:03Z
История изменений этой страницы в вики
MediaWiki 1.30.0
http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Xml.XPath/XPathNodeType&diff=4471&oldid=prev
в 15:31, 26 мая 2010
2010-05-26T15:31:35Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<tr style="vertical-align: top;" lang="ru">
<td colspan="1" style="background-color: white; color:black; text-align: center;">← Предыдущая</td>
<td colspan="1" style="background-color: white; color:black; text-align: center;">Версия 15:31, 26 мая 2010</td>
</tr><tr><td colspan="2" style="text-align: center;" lang="ru"><div class="mw-diff-empty">(нет различий)</div>
</td></tr></table>
http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Xml.XPath/XPathNodeType&diff=4472&oldid=prev
Admin: 1 версия
2010-05-26T12:11:05Z
<p>1 версия</p>
<p><b>Новая страница</b></p><div>==XPathNodeType.Element==<br />
<br />
<br />
<br />
<source lang="csharp"> <br />
using System;<br />
using System.Collections.Generic;<br />
using System.Data;<br />
using System.Text;<br />
using System.Xml;<br />
using System.Xml.XPath;<br />
public class MainClass {<br />
public static void Main() {<br />
XPathDocument doc = new XPathDocument("books.xml");<br />
XPathNavigator nav = ((IXPathNavigable)doc).CreateNavigator();<br />
XPathNodeIterator iter = nav.Select("/bookstore/book[@genre="novel"]");<br />
while (iter.MoveNext()) {<br />
XPathNodeIterator newIter = iter.Current.SelectDescendants(XPathNodeType.Element, false);<br />
while (newIter.MoveNext())<br />
Console.WriteLine(newIter.Current.Name + ": " + newIter.Current.Value);<br />
}<br />
}<br />
}<br />
<br />
</source></div>
Admin