~ubuntu-branches/ubuntu/utopic/monodevelop/utopic

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor/XmlFileAssociation.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-10-10 14:50:04 UTC
  • mfrom: (10.3.4)
  • Revision ID: package-import@ubuntu.com-20131010145004-80l130sny21b17sb
Tags: 4.0.12+dfsg-1
* [5dcb6e1] Fix debian/watch for new source tarball name format
* [5c68cb5] Refresh list of files removed by get-orig-source to 
  reflect 4.0.12
* [96d60a0] Imported Upstream version 4.0.12+dfsg
* [b989752] Refresh debian/patches/no_appmenu to ensure it applies
* [2a4c351] Ensure every assembly in external/ is cleaned properly
* [92762f7] Add more excluded Mac-specific modulerefs
* [bc698ba] Add symlinks to NUnit assemblies (Closes: #714246)

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
// THE SOFTWARE.
23
23
 
24
24
using MonoDevelop.Core;
25
 
using System;
26
25
using System.Xml;
27
26
 
28
27
namespace MonoDevelop.XmlEditor
51
50
                public string Extension { get; private set; }
52
51
                public string NamespacePrefix { get; private set; }
53
52
                
54
 
                ICustomXmlSerializer ICustomXmlSerializer.ReadFrom (XmlReader reader)
 
53
                public ICustomXmlSerializer ReadFrom (XmlReader reader)
55
54
                {
56
55
                        while (reader.Read ()) {
57
56
                                if (reader.NodeType == XmlNodeType.Element && reader.Name == schemaAssociationElementName) {
64
63
                        return null;
65
64
                }
66
65
                
67
 
                void ICustomXmlSerializer.WriteTo (XmlWriter writer)
 
66
                public void WriteTo (XmlWriter writer)
68
67
                {
69
68
                        writer.WriteStartElement (schemaAssociationElementName);
70
69
                        writer.WriteAttributeString (extensionAttributeName, Extension);