<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FXML_LINQ%2FXElement_Update</id>
		<title>Csharp/C Sharp/XML LINQ/XElement Update - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FXML_LINQ%2FXElement_Update"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/XML_LINQ/XElement_Update&amp;action=history"/>
		<updated>2026-04-29T19:52:16Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/XML_LINQ/XElement_Update&amp;diff=232&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/XML_LINQ/XElement_Update&amp;diff=232&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:18Z</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;Версия 15:31, 26 мая 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://nfex.ru/index.php?title=Csharp/C_Sharp/XML_LINQ/XElement_Update&amp;diff=233&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/XML_LINQ/XElement_Update&amp;diff=233&amp;oldid=prev"/>
				<updated>2010-05-26T11:34:01Z</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;==Updating a Node&amp;quot;s Value==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
using System;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Xml;&lt;br /&gt;
using System.Xml.Linq;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
    public static void Main() {&lt;br /&gt;
        XElement firstParticipant;&lt;br /&gt;
        XDocument xDocument = new XDocument(&lt;br /&gt;
          new XElement(&amp;quot;Books&amp;quot;, firstParticipant =&lt;br /&gt;
            new XElement(&amp;quot;Book&amp;quot;,&lt;br /&gt;
              new XComment(&amp;quot;This is a new author.&amp;quot;),&lt;br /&gt;
              new XAttribute(&amp;quot;type&amp;quot;, &amp;quot;Author&amp;quot;),&lt;br /&gt;
              new XElement(&amp;quot;FirstName&amp;quot;, &amp;quot;J&amp;quot;),&lt;br /&gt;
              new XElement(&amp;quot;LastName&amp;quot;, &amp;quot;R&amp;quot;))));&lt;br /&gt;
        Console.WriteLine(xDocument);&lt;br /&gt;
        firstParticipant.Element(&amp;quot;FirstName&amp;quot;).Value = &amp;quot;J&amp;quot;;&lt;br /&gt;
        firstParticipant.Nodes().OfType&amp;lt;XComment&amp;gt;().Single().Value =&amp;quot;LINQ&amp;quot;;&lt;br /&gt;
        ((XElement)firstParticipant.Element(&amp;quot;FirstName&amp;quot;).NextNode).Nodes().OfType&amp;lt;XText&amp;gt;().Single().Value = &amp;quot;R&amp;quot;;&lt;br /&gt;
        Console.WriteLine(xDocument);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating a Processing Instruction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
using System;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Xml;&lt;br /&gt;
using System.Xml.Linq;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
    public static void Main() {&lt;br /&gt;
        XProcessingInstruction procInst;&lt;br /&gt;
        XDocument xDocument = new XDocument(&lt;br /&gt;
          new XElement(&amp;quot;Books&amp;quot;),&lt;br /&gt;
          procInst = new XProcessingInstruction(&amp;quot;Book&amp;quot;, &amp;quot;out-of-print&amp;quot;));&lt;br /&gt;
        Console.WriteLine(xDocument);&lt;br /&gt;
        procInst.Target = &amp;quot;BookContactManager&amp;quot;;&lt;br /&gt;
        procInst.Data = &amp;quot;update&amp;quot;;&lt;br /&gt;
        Console.WriteLine(xDocument);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Updating the Document Type==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
using System;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Collections;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Xml;&lt;br /&gt;
using System.Xml.Linq;&lt;br /&gt;
public class MainClass {&lt;br /&gt;
    public static void Main() {&lt;br /&gt;
        XDocumentType docType;&lt;br /&gt;
        XDocument xDocument = new XDocument(docType = new XDocumentType(&amp;quot;Books&amp;quot;, null,&amp;quot;Books.dtd&amp;quot;, null),&lt;br /&gt;
          new XElement(&amp;quot;Books&amp;quot;));&lt;br /&gt;
        Console.WriteLine(&amp;quot;Before updating document type:&amp;quot;);&lt;br /&gt;
        Console.WriteLine(xDocument);&lt;br /&gt;
        docType.Name = &amp;quot;MyBooks&amp;quot;;&lt;br /&gt;
        docType.SystemId = &amp;quot;http://www.yoursite.ru/DTDs/MyBooks.DTD&amp;quot;;&lt;br /&gt;
        docType.PublicId = &amp;quot;-//DTDs//TEXT Book Participants//EN&amp;quot;;&lt;br /&gt;
        Console.WriteLine(xDocument);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>