Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2015-02-06 11:01:19 +0300
committerAtsushi Eno <atsushieno@gmail.com>2015-02-20 22:33:23 +0300
commit545cdaf8f77cf976e02167964b39e1d5466d44ab (patch)
treeed16accefe4b0d525f24129053928fac4bd80a90
parent6499ba871d76036e6faa10961f23e6760f3b10e7 (diff)
[WCF] XmlWriter.WriteAttributeString(string,string) does not accept xml:*.
It needs LocalName. So use other overloads instead.
-rw-r--r--mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10FeedFormatter.cs4
-rw-r--r--mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10ItemFormatter.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10FeedFormatter.cs b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10FeedFormatter.cs
index 5cf086e73b8..85fca596d80 100644
--- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10FeedFormatter.cs
+++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10FeedFormatter.cs
@@ -411,10 +411,10 @@ namespace System.ServiceModel.Syndication
writer.WriteStartElement ("feed", AtomNamespace);
if (Feed.BaseUri != null)
- writer.WriteAttributeString ("xml:base", Feed.BaseUri.ToString ());
+ writer.WriteAttributeString ("xml", "base", null, Feed.BaseUri.ToString ());
if (Feed.Language != null)
- writer.WriteAttributeString ("xml:lang", Feed.Language);
+ writer.WriteAttributeString ("xml", "lang", null, Feed.Language);
// atom:feed elements MUST contain exactly one atom:title element.
(Feed.Title ?? new TextSyndicationContent (String.Empty)).WriteTo (writer, "title", AtomNamespace);
diff --git a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10ItemFormatter.cs b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10ItemFormatter.cs
index 3af44ddf3db..0c181289d25 100644
--- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10ItemFormatter.cs
+++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Syndication/Atom10ItemFormatter.cs
@@ -408,7 +408,7 @@ namespace System.ServiceModel.Syndication
writer.WriteStartElement ("entry", AtomNamespace);
if (Item.BaseUri != null)
- writer.WriteAttributeString ("xml:base", Item.BaseUri.ToString ());
+ writer.WriteAttributeString ("xml", "base", null, Item.BaseUri.ToString ());
// atom:entry elements MUST contain exactly one atom:id element.
writer.WriteElementString ("id", AtomNamespace, Item.Id ?? new UniqueId ().ToString ());