Author: joelreed
Date: 2007-05-31 21:04:19 -0400 (Thu, 31 May 2007)
New Revision: 78388

Added:
   trunk/olive/class/System.ServiceModel.Web/ChangeLog
   trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10Serializer.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/README
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Rss20Serializer.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationContent.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationFeed.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationItem.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationLink.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationSerializer.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/TextSyndicationContent.cs
   
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/TextSyndicationContentKind.cs
Removed:
   trunk/olive/class/System.ServiceModel.Web/Atom10Serializer.cs
   trunk/olive/class/System.ServiceModel.Web/README
   trunk/olive/class/System.ServiceModel.Web/Rss20Serializer.cs
   trunk/olive/class/System.ServiceModel.Web/SyndicationContent.cs
   trunk/olive/class/System.ServiceModel.Web/SyndicationFeed.cs
   trunk/olive/class/System.ServiceModel.Web/SyndicationItem.cs
   trunk/olive/class/System.ServiceModel.Web/SyndicationLink.cs
   trunk/olive/class/System.ServiceModel.Web/SyndicationSerializer.cs
   trunk/olive/class/System.ServiceModel.Web/TextSyndicationContent.cs
   trunk/olive/class/System.ServiceModel.Web/TextSyndicationContentKind.cs
Modified:
   trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources
Log:
Move System.ServiceModel.Syndication files into a subdirectory


Deleted: trunk/olive/class/System.ServiceModel.Web/Atom10Serializer.cs
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/Atom10Serializer.cs       
2007-06-01 00:20:55 UTC (rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/Atom10Serializer.cs       
2007-06-01 01:04:19 UTC (rev 78388)
@@ -1,84 +0,0 @@
-//
-// System.ServiceModel.Syndication.Atom10Serializer
-//
-// Authors:
-//     Joel Reed ([EMAIL PROTECTED])
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Globalization;
-using System.Xml;
-
-namespace System.ServiceModel.Syndication
-{
-       public class Atom10Serializer : SyndicationSerializer
-       {
-               internal override void WriteXml(XmlWriter writer, 
SyndicationFeed feed)
-               {
-                       writer.WriteStartElement(FeedName, FeedNamespace);
-
-                       WriteXml(writer, feed.Title, "title", true);
-                       writer.WriteElementString("id", feed.Id);
-
-                       string updated = 
feed.LastUpdatedTime.ToUniversalTime().ToString("s");
-                       writer.WriteElementString("updated", updated + "Z");
-
-                       WriteXml(writer, feed.Description, "summary");
-
-                       foreach (SyndicationItem item in feed.Items)
-                               {
-                                       WriteTo(writer, item);
-                               }
-
-                       writer.WriteEndElement();
-               }
-
-               internal override void WriteXml(XmlWriter writer, 
SyndicationItem item)
-               {
-                       writer.WriteStartElement(ItemName, ItemNamespace);
-                       writer.WriteElementString("id", item.Id);
-                       WriteXml(writer, item.Title, "title");
-                       WriteXml(writer, item.Summary, "summary");
-                       writer.WriteEndElement();
-               }
-
-               protected override string FeedName { 
-                       get { return "feed"; } 
-               }
-
-               protected override string FeedNamespace { 
-                       get { return "http://www.w3.org/2005/Atom";; } 
-               }
-
-               protected override string ItemName { 
-                       get { return "entry"; } 
-               }
-
-               protected override string ItemNamespace { 
-                       get { return "http://www.w3.org/2005/Atom";; } 
-               }
-
-       }
-}
-

Added: trunk/olive/class/System.ServiceModel.Web/ChangeLog
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/ChangeLog 2007-06-01 00:20:55 UTC 
(rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/ChangeLog 2007-06-01 01:04:19 UTC 
(rev 78388)
@@ -0,0 +1,4 @@
+2007-05-31  Joel Reed  <[EMAIL PROTECTED]>
+
+       * Move System.ServiceModel.Syndication files into a subdirectory
+

Deleted: trunk/olive/class/System.ServiceModel.Web/README
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/README    2007-06-01 00:20:55 UTC 
(rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/README    2007-06-01 01:04:19 UTC 
(rev 78388)
@@ -1,4 +0,0 @@
-Some documentation on the System.ServiceModel.Syndication namespace
-can be found here:
-
-http://msdn2.microsoft.com/en-us/library/bb357210(VS.90).aspx
\ No newline at end of file

Deleted: trunk/olive/class/System.ServiceModel.Web/Rss20Serializer.cs
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/Rss20Serializer.cs        
2007-06-01 00:20:55 UTC (rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/Rss20Serializer.cs        
2007-06-01 01:04:19 UTC (rev 78388)
@@ -1,79 +0,0 @@
-//
-// System.ServiceModel.Syndication.Rss20Serializer
-//
-// Authors:
-//     Joel Reed ([EMAIL PROTECTED])
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Xml;
-
-namespace System.ServiceModel.Syndication
-{
-       public class Rss20Serializer : SyndicationSerializer
-       {
-               internal override void WriteXml(XmlWriter writer, 
SyndicationFeed feed)
-               {
-                       writer.WriteStartElement(FeedName, FeedNamespace);
-                       writer.WriteElementString("id", feed.Id);
-
-                       WriteXml(writer, feed.Title, "title");
-                       WriteXml(writer, feed.Description, "description");
-                       
-                       foreach (SyndicationItem item in feed.Items)
-                               {
-                                       WriteTo(writer, item);
-                               }
-
-                       writer.WriteEndElement();
-               }
-
-               internal override void WriteXml(XmlWriter writer, 
SyndicationItem item)
-               {
-                       writer.WriteStartElement(ItemName, ItemNamespace);
-                       writer.WriteElementString("guid", item.Id);
-                       WriteXml(writer, item.Title, "title");
-                       WriteXml(writer, item.Summary, "description");
-                       writer.WriteEndElement();
-               }
-
-               protected override string FeedName { 
-                       get { return "channel"; } 
-               }
-
-               protected override string FeedNamespace { 
-                       get { return ""; } 
-               }
-
-               protected override string ItemName { 
-                       get { return "item"; } 
-               }
-
-               protected override string ItemNamespace { 
-                       get { return ""; } 
-               }
-
-       }
-}
-

Deleted: trunk/olive/class/System.ServiceModel.Web/SyndicationContent.cs
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/SyndicationContent.cs     
2007-06-01 00:20:55 UTC (rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/SyndicationContent.cs     
2007-06-01 01:04:19 UTC (rev 78388)
@@ -1,55 +0,0 @@
-//
-// System.ServiceModel.Syndication.SyndicationContent
-//
-// Authors:
-//     Joel Reed ([EMAIL PROTECTED])
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Xml;
-
-namespace System.ServiceModel.Syndication
-{
-       public abstract class SyndicationContent
-       {
-               public static TextSyndicationContent 
CreatePlaintextTextSyndicationContent (string content)
-               {
-                       return new TextSyndicationContent(content);
-               }
-
-               public void WriteTo (XmlWriter writer, string outerElementName,
-                                                                               
                 string outerElementNameNs)
-               {
-                       writer.WriteStartElement(outerElementName, 
outerElementNameNs);
-                       writer.WriteAttributeString("type", Type);
-                       WriteContentsTo(writer);
-                       writer.WriteEndElement();
-               }
-
-               public abstract string Type { get; }
-
-               protected abstract void WriteContentsTo (XmlWriter writer);
-       }
-}
-

Deleted: trunk/olive/class/System.ServiceModel.Web/SyndicationFeed.cs
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/SyndicationFeed.cs        
2007-06-01 00:20:55 UTC (rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/SyndicationFeed.cs        
2007-06-01 01:04:19 UTC (rev 78388)
@@ -1,123 +0,0 @@
-//
-// System.ServiceModel.Syndication.SyndicationFeed
-//
-// Authors:
-//     Joel Reed ([EMAIL PROTECTED])
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Xml;
-using System.Collections.ObjectModel;
-
-namespace System.ServiceModel.Syndication
-{
-       public class SyndicationFeed
-       {
-               private string id;
-               private TextSyndicationContent description;
-               private TextSyndicationContent title;
-               private Collection<SyndicationItem> items;
-               private DateTime lastUpdatedTime;
-               private TextSyndicationContent copyright;
-               private string generator;
-               private string language;
-               private Uri imageUrl;
-               private Collection<SyndicationLink> links;
-
-               public SyndicationFeed()
-               {
-                       items = new Collection<SyndicationItem>();
-                       links = new Collection<SyndicationLink>();
-                       lastUpdatedTime = DateTime.Now.ToUniversalTime();
-               }
-
-               public SyndicationFeed(string title, string description,
-                                                                               
                         Uri feedAlternateLink) : this()
-               {
-                       this.title = new TextSyndicationContent(title);
-                       this.description = new 
TextSyndicationContent(description);
-                       
links.Add(SyndicationLink.CreateAlternateLink(feedAlternateLink));
-               }
-
-               public void WriteTo(XmlWriter writer, SyndicationSerializer 
serializer)
-               {
-                       serializer.WriteTo(writer, this);
-               }
-
-               public string Id
-               {
-                       get { return id; }
-                       set { id = value; }
-               }
-
-               public TextSyndicationContent Copyright
-               {
-                       get { return copyright; }
-                       set { copyright = value; }
-               }
-
-               public string Generator
-               {
-                       get { return generator; }
-                       set { generator = value; }
-               }
-
-               public string Language
-               {
-                       get { return language; }
-                       set { language = value; }
-               }
-
-               public DateTime LastUpdatedTime
-               {
-                       get { return lastUpdatedTime; }
-                       set { lastUpdatedTime = value; }
-               }
-
-               public Uri ImageUrl
-               {
-                       get { return imageUrl; }
-                       set { imageUrl = value; }
-               }
-
-               public Collection<SyndicationItem> Items {
-                       get { return items; }
-               }
-
-               public Collection<SyndicationLink> Links {
-                       get { return links; }
-               }
-
-               public TextSyndicationContent Description {
-                       get { return description; }
-                       set { description = value; }
-               }
-
-               public TextSyndicationContent Title {
-                       get { return title; }
-                       set { title = value; }
-               }
-       }
-}
-

Deleted: trunk/olive/class/System.ServiceModel.Web/SyndicationItem.cs
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/SyndicationItem.cs        
2007-06-01 00:20:55 UTC (rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/SyndicationItem.cs        
2007-06-01 01:04:19 UTC (rev 78388)
@@ -1,98 +0,0 @@
-//
-// System.ServiceModel.Syndication.SyndicationItem
-//
-// Authors:
-//     Joel Reed ([EMAIL PROTECTED])
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Xml;
-
-namespace System.ServiceModel.Syndication
-{
-       public class SyndicationItem
-       {
-               private string id;
-               private TextSyndicationContent summary;
-               private TextSyndicationContent title;
-               private SyndicationContent content;
-               private SyndicationFeed sourceFeed;
-               private DateTime publishDate;
-               private DateTime lastUpdatedTime;
-               private TextSyndicationContent copyright;
-
-               public void WriteTo(XmlWriter writer, SyndicationSerializer 
serializer)
-               {
-                       serializer.WriteTo(writer, this);
-               }
-
-               public string Id
-               {
-                       get { return id; }
-                       set { id = value; }
-               }
-
-               public SyndicationContent Content
-               {
-                       get { return content; }
-                       set { content = value; }
-               }
-
-               public TextSyndicationContent Copyright
-               {
-                       get { return copyright; }
-                       set { copyright = value; }
-               }
-
-               public DateTime LastUpdatedTime
-               {
-                       get { return lastUpdatedTime; }
-                       set { lastUpdatedTime = value; }
-               }
-
-               public DateTime PublishDate
-               {
-                       get { return publishDate; }
-                       set { publishDate = value; }
-               }
-
-               public SyndicationFeed SourceFeed
-               {
-                       get { return sourceFeed; }
-                       set { sourceFeed = value; }
-               }
-
-               public TextSyndicationContent Summary {
-                       get { return summary; }
-                       set { summary = value; }
-               }
-
-               public TextSyndicationContent Title {
-                       get { return title; }
-                       set { title = value; }
-               }
-
-       }
-}
-

Deleted: trunk/olive/class/System.ServiceModel.Web/SyndicationLink.cs
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/SyndicationLink.cs        
2007-06-01 00:20:55 UTC (rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/SyndicationLink.cs        
2007-06-01 01:04:19 UTC (rev 78388)
@@ -1,62 +0,0 @@
-//
-// System.ServiceModel.Syndication.SyndicationLink
-//
-// Authors:
-//     Joel Reed ([EMAIL PROTECTED])
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Xml;
-
-namespace System.ServiceModel.Syndication
-{
-       public class SyndicationLink
-       {
-               private Uri uri;
-               private string relationshipType;
-
-               public SyndicationLink(Uri uri)
-               {
-                       this.uri = uri;
-               }
-
-               public Uri Uri
-               {
-                       get { return uri; }
-                       set { uri = value; }
-               }
-
-               public string RelationshipType
-               {
-                       get { return relationshipType; }
-                       set { relationshipType = value; }
-               }
-
-               public static SyndicationLink CreateAlternateLink(Uri uri)
-               {
-                       return new SyndicationLink(uri);
-               }
-       }
-}
-

Deleted: trunk/olive/class/System.ServiceModel.Web/SyndicationSerializer.cs
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/SyndicationSerializer.cs  
2007-06-01 00:20:55 UTC (rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/SyndicationSerializer.cs  
2007-06-01 01:04:19 UTC (rev 78388)
@@ -1,78 +0,0 @@
-//
-// System.ServiceModel.Syndication.SyndicationSerializer
-//
-// Authors:
-//     Joel Reed ([EMAIL PROTECTED])
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Xml;
-
-namespace System.ServiceModel.Syndication
-{
-       public abstract class SyndicationSerializer
-       {
-               protected abstract string FeedName { get; }
-               protected abstract string FeedNamespace { get; }
-
-               protected abstract string ItemName { get; }
-               protected abstract string ItemNamespace { get; }
-
-               internal abstract void WriteXml(XmlWriter writer, 
SyndicationFeed feed);
-               internal abstract void WriteXml(XmlWriter writer, 
SyndicationItem item);
-
-               public void WriteTo(XmlWriter writer, SyndicationFeed feed)
-               {
-                       WriteXml(writer, feed);
-               }
-
-               public void WriteTo(XmlWriter writer, SyndicationItem item)
-               {
-                       WriteXml(writer, item);
-               }
-
-               internal void WriteXml(XmlWriter writer, SyndicationContent 
content,
-                                                                               
                         string outerElementName)
-               {
-                       WriteXml(writer, content, outerElementName, false);
-               }
-
-               internal void WriteXml(XmlWriter writer, SyndicationContent 
content,
-                                                                               
                         string outerElementName, bool writeEmptyNodes)
-               {
-                       if (content != null)
-                               {
-                                       content.WriteTo(writer, 
outerElementName, FeedNamespace);
-                                       return;
-                               }
-
-                       if (!writeEmptyNodes) return;
-                        
-                       // write out empty node if necessary
-                       TextSyndicationContent emptyNode = new 
TextSyndicationContent("");
-                       emptyNode.WriteTo(writer, outerElementName, 
FeedNamespace);
-               }
-       }
-}
-

Copied: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10Serializer.cs
 (from rev 78283, trunk/olive/class/System.ServiceModel.Web/Atom10Serializer.cs)
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/Atom10Serializer.cs       
2007-05-31 00:52:47 UTC (rev 78283)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10Serializer.cs
       2007-06-01 01:04:19 UTC (rev 78388)
@@ -0,0 +1,84 @@
+//
+// System.ServiceModel.Syndication.Atom10Serializer
+//
+// Authors:
+//     Joel Reed ([EMAIL PROTECTED])
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Globalization;
+using System.Xml;
+
+namespace System.ServiceModel.Syndication
+{
+       public class Atom10Serializer : SyndicationSerializer
+       {
+               internal override void WriteXml(XmlWriter writer, 
SyndicationFeed feed)
+               {
+                       writer.WriteStartElement(FeedName, FeedNamespace);
+
+                       WriteXml(writer, feed.Title, "title", true);
+                       writer.WriteElementString("id", feed.Id);
+
+                       string updated = 
feed.LastUpdatedTime.ToUniversalTime().ToString("s");
+                       writer.WriteElementString("updated", updated + "Z");
+
+                       WriteXml(writer, feed.Description, "summary");
+
+                       foreach (SyndicationItem item in feed.Items)
+                               {
+                                       WriteTo(writer, item);
+                               }
+
+                       writer.WriteEndElement();
+               }
+
+               internal override void WriteXml(XmlWriter writer, 
SyndicationItem item)
+               {
+                       writer.WriteStartElement(ItemName, ItemNamespace);
+                       writer.WriteElementString("id", item.Id);
+                       WriteXml(writer, item.Title, "title");
+                       WriteXml(writer, item.Summary, "summary");
+                       writer.WriteEndElement();
+               }
+
+               protected override string FeedName { 
+                       get { return "feed"; } 
+               }
+
+               protected override string FeedNamespace { 
+                       get { return "http://www.w3.org/2005/Atom";; } 
+               }
+
+               protected override string ItemName { 
+                       get { return "entry"; } 
+               }
+
+               protected override string ItemNamespace { 
+                       get { return "http://www.w3.org/2005/Atom";; } 
+               }
+
+       }
+}
+

Copied: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/README
 (from rev 78283, trunk/olive/class/System.ServiceModel.Web/README)
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/README    2007-05-31 00:52:47 UTC 
(rev 78283)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/README
    2007-06-01 01:04:19 UTC (rev 78388)
@@ -0,0 +1,4 @@
+Some documentation on the System.ServiceModel.Syndication namespace
+can be found here:
+
+http://msdn2.microsoft.com/en-us/library/bb357210(VS.90).aspx
\ No newline at end of file

Copied: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Rss20Serializer.cs
 (from rev 78283, trunk/olive/class/System.ServiceModel.Web/Rss20Serializer.cs)
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/Rss20Serializer.cs        
2007-05-31 00:52:47 UTC (rev 78283)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Rss20Serializer.cs
        2007-06-01 01:04:19 UTC (rev 78388)
@@ -0,0 +1,79 @@
+//
+// System.ServiceModel.Syndication.Rss20Serializer
+//
+// Authors:
+//     Joel Reed ([EMAIL PROTECTED])
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Xml;
+
+namespace System.ServiceModel.Syndication
+{
+       public class Rss20Serializer : SyndicationSerializer
+       {
+               internal override void WriteXml(XmlWriter writer, 
SyndicationFeed feed)
+               {
+                       writer.WriteStartElement(FeedName, FeedNamespace);
+                       writer.WriteElementString("id", feed.Id);
+
+                       WriteXml(writer, feed.Title, "title");
+                       WriteXml(writer, feed.Description, "description");
+                       
+                       foreach (SyndicationItem item in feed.Items)
+                               {
+                                       WriteTo(writer, item);
+                               }
+
+                       writer.WriteEndElement();
+               }
+
+               internal override void WriteXml(XmlWriter writer, 
SyndicationItem item)
+               {
+                       writer.WriteStartElement(ItemName, ItemNamespace);
+                       writer.WriteElementString("guid", item.Id);
+                       WriteXml(writer, item.Title, "title");
+                       WriteXml(writer, item.Summary, "description");
+                       writer.WriteEndElement();
+               }
+
+               protected override string FeedName { 
+                       get { return "channel"; } 
+               }
+
+               protected override string FeedNamespace { 
+                       get { return ""; } 
+               }
+
+               protected override string ItemName { 
+                       get { return "item"; } 
+               }
+
+               protected override string ItemNamespace { 
+                       get { return ""; } 
+               }
+
+       }
+}
+

Copied: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationContent.cs
 (from rev 78283, 
trunk/olive/class/System.ServiceModel.Web/SyndicationContent.cs)
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/SyndicationContent.cs     
2007-05-31 00:52:47 UTC (rev 78283)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationContent.cs
     2007-06-01 01:04:19 UTC (rev 78388)
@@ -0,0 +1,55 @@
+//
+// System.ServiceModel.Syndication.SyndicationContent
+//
+// Authors:
+//     Joel Reed ([EMAIL PROTECTED])
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Xml;
+
+namespace System.ServiceModel.Syndication
+{
+       public abstract class SyndicationContent
+       {
+               public static TextSyndicationContent 
CreatePlaintextTextSyndicationContent (string content)
+               {
+                       return new TextSyndicationContent(content);
+               }
+
+               public void WriteTo (XmlWriter writer, string outerElementName,
+                                                                               
                 string outerElementNameNs)
+               {
+                       writer.WriteStartElement(outerElementName, 
outerElementNameNs);
+                       writer.WriteAttributeString("type", Type);
+                       WriteContentsTo(writer);
+                       writer.WriteEndElement();
+               }
+
+               public abstract string Type { get; }
+
+               protected abstract void WriteContentsTo (XmlWriter writer);
+       }
+}
+

Copied: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationFeed.cs
 (from rev 78283, trunk/olive/class/System.ServiceModel.Web/SyndicationFeed.cs)
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/SyndicationFeed.cs        
2007-05-31 00:52:47 UTC (rev 78283)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationFeed.cs
        2007-06-01 01:04:19 UTC (rev 78388)
@@ -0,0 +1,123 @@
+//
+// System.ServiceModel.Syndication.SyndicationFeed
+//
+// Authors:
+//     Joel Reed ([EMAIL PROTECTED])
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Xml;
+using System.Collections.ObjectModel;
+
+namespace System.ServiceModel.Syndication
+{
+       public class SyndicationFeed
+       {
+               private string id;
+               private TextSyndicationContent description;
+               private TextSyndicationContent title;
+               private Collection<SyndicationItem> items;
+               private DateTime lastUpdatedTime;
+               private TextSyndicationContent copyright;
+               private string generator;
+               private string language;
+               private Uri imageUrl;
+               private Collection<SyndicationLink> links;
+
+               public SyndicationFeed()
+               {
+                       items = new Collection<SyndicationItem>();
+                       links = new Collection<SyndicationLink>();
+                       lastUpdatedTime = DateTime.Now.ToUniversalTime();
+               }
+
+               public SyndicationFeed(string title, string description,
+                                                                               
                         Uri feedAlternateLink) : this()
+               {
+                       this.title = new TextSyndicationContent(title);
+                       this.description = new 
TextSyndicationContent(description);
+                       
links.Add(SyndicationLink.CreateAlternateLink(feedAlternateLink));
+               }
+
+               public void WriteTo(XmlWriter writer, SyndicationSerializer 
serializer)
+               {
+                       serializer.WriteTo(writer, this);
+               }
+
+               public string Id
+               {
+                       get { return id; }
+                       set { id = value; }
+               }
+
+               public TextSyndicationContent Copyright
+               {
+                       get { return copyright; }
+                       set { copyright = value; }
+               }
+
+               public string Generator
+               {
+                       get { return generator; }
+                       set { generator = value; }
+               }
+
+               public string Language
+               {
+                       get { return language; }
+                       set { language = value; }
+               }
+
+               public DateTime LastUpdatedTime
+               {
+                       get { return lastUpdatedTime; }
+                       set { lastUpdatedTime = value; }
+               }
+
+               public Uri ImageUrl
+               {
+                       get { return imageUrl; }
+                       set { imageUrl = value; }
+               }
+
+               public Collection<SyndicationItem> Items {
+                       get { return items; }
+               }
+
+               public Collection<SyndicationLink> Links {
+                       get { return links; }
+               }
+
+               public TextSyndicationContent Description {
+                       get { return description; }
+                       set { description = value; }
+               }
+
+               public TextSyndicationContent Title {
+                       get { return title; }
+                       set { title = value; }
+               }
+       }
+}
+

Copied: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationItem.cs
 (from rev 78283, trunk/olive/class/System.ServiceModel.Web/SyndicationItem.cs)
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/SyndicationItem.cs        
2007-05-31 00:52:47 UTC (rev 78283)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationItem.cs
        2007-06-01 01:04:19 UTC (rev 78388)
@@ -0,0 +1,98 @@
+//
+// System.ServiceModel.Syndication.SyndicationItem
+//
+// Authors:
+//     Joel Reed ([EMAIL PROTECTED])
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Xml;
+
+namespace System.ServiceModel.Syndication
+{
+       public class SyndicationItem
+       {
+               private string id;
+               private TextSyndicationContent summary;
+               private TextSyndicationContent title;
+               private SyndicationContent content;
+               private SyndicationFeed sourceFeed;
+               private DateTime publishDate;
+               private DateTime lastUpdatedTime;
+               private TextSyndicationContent copyright;
+
+               public void WriteTo(XmlWriter writer, SyndicationSerializer 
serializer)
+               {
+                       serializer.WriteTo(writer, this);
+               }
+
+               public string Id
+               {
+                       get { return id; }
+                       set { id = value; }
+               }
+
+               public SyndicationContent Content
+               {
+                       get { return content; }
+                       set { content = value; }
+               }
+
+               public TextSyndicationContent Copyright
+               {
+                       get { return copyright; }
+                       set { copyright = value; }
+               }
+
+               public DateTime LastUpdatedTime
+               {
+                       get { return lastUpdatedTime; }
+                       set { lastUpdatedTime = value; }
+               }
+
+               public DateTime PublishDate
+               {
+                       get { return publishDate; }
+                       set { publishDate = value; }
+               }
+
+               public SyndicationFeed SourceFeed
+               {
+                       get { return sourceFeed; }
+                       set { sourceFeed = value; }
+               }
+
+               public TextSyndicationContent Summary {
+                       get { return summary; }
+                       set { summary = value; }
+               }
+
+               public TextSyndicationContent Title {
+                       get { return title; }
+                       set { title = value; }
+               }
+
+       }
+}
+

Copied: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationLink.cs
 (from rev 78283, trunk/olive/class/System.ServiceModel.Web/SyndicationLink.cs)
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/SyndicationLink.cs        
2007-05-31 00:52:47 UTC (rev 78283)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationLink.cs
        2007-06-01 01:04:19 UTC (rev 78388)
@@ -0,0 +1,62 @@
+//
+// System.ServiceModel.Syndication.SyndicationLink
+//
+// Authors:
+//     Joel Reed ([EMAIL PROTECTED])
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Xml;
+
+namespace System.ServiceModel.Syndication
+{
+       public class SyndicationLink
+       {
+               private Uri uri;
+               private string relationshipType;
+
+               public SyndicationLink(Uri uri)
+               {
+                       this.uri = uri;
+               }
+
+               public Uri Uri
+               {
+                       get { return uri; }
+                       set { uri = value; }
+               }
+
+               public string RelationshipType
+               {
+                       get { return relationshipType; }
+                       set { relationshipType = value; }
+               }
+
+               public static SyndicationLink CreateAlternateLink(Uri uri)
+               {
+                       return new SyndicationLink(uri);
+               }
+       }
+}
+

Copied: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationSerializer.cs
 (from rev 78283, 
trunk/olive/class/System.ServiceModel.Web/SyndicationSerializer.cs)
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/SyndicationSerializer.cs  
2007-05-31 00:52:47 UTC (rev 78283)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/SyndicationSerializer.cs
  2007-06-01 01:04:19 UTC (rev 78388)
@@ -0,0 +1,78 @@
+//
+// System.ServiceModel.Syndication.SyndicationSerializer
+//
+// Authors:
+//     Joel Reed ([EMAIL PROTECTED])
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Xml;
+
+namespace System.ServiceModel.Syndication
+{
+       public abstract class SyndicationSerializer
+       {
+               protected abstract string FeedName { get; }
+               protected abstract string FeedNamespace { get; }
+
+               protected abstract string ItemName { get; }
+               protected abstract string ItemNamespace { get; }
+
+               internal abstract void WriteXml(XmlWriter writer, 
SyndicationFeed feed);
+               internal abstract void WriteXml(XmlWriter writer, 
SyndicationItem item);
+
+               public void WriteTo(XmlWriter writer, SyndicationFeed feed)
+               {
+                       WriteXml(writer, feed);
+               }
+
+               public void WriteTo(XmlWriter writer, SyndicationItem item)
+               {
+                       WriteXml(writer, item);
+               }
+
+               internal void WriteXml(XmlWriter writer, SyndicationContent 
content,
+                                                                               
                         string outerElementName)
+               {
+                       WriteXml(writer, content, outerElementName, false);
+               }
+
+               internal void WriteXml(XmlWriter writer, SyndicationContent 
content,
+                                                                               
                         string outerElementName, bool writeEmptyNodes)
+               {
+                       if (content != null)
+                               {
+                                       content.WriteTo(writer, 
outerElementName, FeedNamespace);
+                                       return;
+                               }
+
+                       if (!writeEmptyNodes) return;
+                        
+                       // write out empty node if necessary
+                       TextSyndicationContent emptyNode = new 
TextSyndicationContent("");
+                       emptyNode.WriteTo(writer, outerElementName, 
FeedNamespace);
+               }
+       }
+}
+

Copied: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/TextSyndicationContent.cs
 (from rev 78283, 
trunk/olive/class/System.ServiceModel.Web/TextSyndicationContent.cs)
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/TextSyndicationContent.cs 
2007-05-31 00:52:47 UTC (rev 78283)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/TextSyndicationContent.cs
 2007-06-01 01:04:19 UTC (rev 78388)
@@ -0,0 +1,71 @@
+//
+// System.ServiceModel.Syndication.TextSyndicationContent
+//
+// Authors:
+//     Joel Reed ([EMAIL PROTECTED])
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Xml;
+
+namespace System.ServiceModel.Syndication
+{
+       public class TextSyndicationContent : SyndicationContent
+       {
+               private string text;
+               private TextSyndicationContentKind type;
+
+               public TextSyndicationContent (string text)
+                       {
+                               this.text = text;
+                               this.type = 
TextSyndicationContentKind.Plaintext;
+                       }
+
+               public TextSyndicationContent (string text, 
TextSyndicationContentKind type)
+                       {
+                               this.text = text;
+                               this.type = type;
+                       }
+
+               public string Text { 
+                       get { return text; }
+               }
+
+               public override string Type { 
+                       get { 
+                               string tname = "text";
+                               if (type == TextSyndicationContentKind.Html) 
tname = "html";
+                               else if (type == 
TextSyndicationContentKind.XHtml) tname = "xhtml";
+                               return tname;
+                       }
+               }
+
+               protected override void WriteContentsTo (XmlWriter writer)
+               {
+                       writer.WriteString(Text);
+               }
+
+       }
+}
+

Copied: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/TextSyndicationContentKind.cs
 (from rev 78283, 
trunk/olive/class/System.ServiceModel.Web/TextSyndicationContentKind.cs)
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/TextSyndicationContentKind.cs     
2007-05-31 00:52:47 UTC (rev 78283)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Syndication/TextSyndicationContentKind.cs
     2007-06-01 01:04:19 UTC (rev 78388)
@@ -0,0 +1,40 @@
+//
+// System.ServiceModel.Syndication.TextSyndicationContentKind
+//
+// Authors:
+//     Joel Reed ([EMAIL PROTECTED])
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+
+namespace System.ServiceModel.Syndication
+{
+       public enum TextSyndicationContentKind
+       {
+               Html,
+               Plaintext,
+               XHtml,
+       }
+}
+

Modified: 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources
===================================================================
--- 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources   
    2007-06-01 00:20:55 UTC (rev 78387)
+++ 
trunk/olive/class/System.ServiceModel.Web/System.ServiceModel.Web.dll.sources   
    2007-06-01 01:04:19 UTC (rev 78388)
@@ -2,12 +2,12 @@
 ../../build/common/Locale.cs
 ../../build/common/MonoTODOAttribute.cs
 Assembly/AssemblyInfo.cs
-SyndicationFeed.cs
-SyndicationItem.cs
-Atom10Serializer.cs
-TextSyndicationContent.cs
-SyndicationContent.cs
-TextSyndicationContentKind.cs
-SyndicationSerializer.cs
-Rss20Serializer.cs
-SyndicationLink.cs
+System.ServiceModel.Syndication/SyndicationFeed.cs
+System.ServiceModel.Syndication/SyndicationItem.cs
+System.ServiceModel.Syndication/Atom10Serializer.cs
+System.ServiceModel.Syndication/TextSyndicationContent.cs
+System.ServiceModel.Syndication/SyndicationContent.cs
+System.ServiceModel.Syndication/TextSyndicationContentKind.cs
+System.ServiceModel.Syndication/SyndicationSerializer.cs
+System.ServiceModel.Syndication/Rss20Serializer.cs
+System.ServiceModel.Syndication/SyndicationLink.cs

Deleted: trunk/olive/class/System.ServiceModel.Web/TextSyndicationContent.cs
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/TextSyndicationContent.cs 
2007-06-01 00:20:55 UTC (rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/TextSyndicationContent.cs 
2007-06-01 01:04:19 UTC (rev 78388)
@@ -1,71 +0,0 @@
-//
-// System.ServiceModel.Syndication.TextSyndicationContent
-//
-// Authors:
-//     Joel Reed ([EMAIL PROTECTED])
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-using System.Xml;
-
-namespace System.ServiceModel.Syndication
-{
-       public class TextSyndicationContent : SyndicationContent
-       {
-               private string text;
-               private TextSyndicationContentKind type;
-
-               public TextSyndicationContent (string text)
-                       {
-                               this.text = text;
-                               this.type = 
TextSyndicationContentKind.Plaintext;
-                       }
-
-               public TextSyndicationContent (string text, 
TextSyndicationContentKind type)
-                       {
-                               this.text = text;
-                               this.type = type;
-                       }
-
-               public string Text { 
-                       get { return text; }
-               }
-
-               public override string Type { 
-                       get { 
-                               string tname = "text";
-                               if (type == TextSyndicationContentKind.Html) 
tname = "html";
-                               else if (type == 
TextSyndicationContentKind.XHtml) tname = "xhtml";
-                               return tname;
-                       }
-               }
-
-               protected override void WriteContentsTo (XmlWriter writer)
-               {
-                       writer.WriteString(Text);
-               }
-
-       }
-}
-

Deleted: trunk/olive/class/System.ServiceModel.Web/TextSyndicationContentKind.cs
===================================================================
--- trunk/olive/class/System.ServiceModel.Web/TextSyndicationContentKind.cs     
2007-06-01 00:20:55 UTC (rev 78387)
+++ trunk/olive/class/System.ServiceModel.Web/TextSyndicationContentKind.cs     
2007-06-01 01:04:19 UTC (rev 78388)
@@ -1,40 +0,0 @@
-//
-// System.ServiceModel.Syndication.TextSyndicationContentKind
-//
-// Authors:
-//     Joel Reed ([EMAIL PROTECTED])
-//
-
-//
-// Permission is hereby granted, free of charge, to any person obtaining
-// a copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to
-// permit persons to whom the Software is furnished to do so, subject to
-// the following conditions:
-// 
-// The above copyright notice and this permission notice shall be
-// included in all copies or substantial portions of the Software.
-// 
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-//
-
-using System;
-
-namespace System.ServiceModel.Syndication
-{
-       public enum TextSyndicationContentKind
-       {
-               Html,
-               Plaintext,
-               XHtml,
-       }
-}
-

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to