{"action":"opened","issue":{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/432","labels_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/432/comments","events_url":"https://api.github.com/repos/michaeledgar/protobuf-net/issues/432/events","html_url":"https://github.com/michaeledgar/protobuf-net/issues/432","id":58234443,"number":432,"title":"Serialize with XmlWriter","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/michaeledgar/protobuf-net/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-19T16:47:03Z","updated_at":"2015-02-19T16:47:03Z","closed_at":null,"body":"```\nPlease include an e-mail address if this might need a dialogue!\n==============\n\nWhat steps will reproduce the problem?\n1. How to a serialize a class into an xml file with protobuf-net\nMy output file is always blank after serialization.\n2.\n3.\n\nWhat is the expected output? What do you see instead?\nCan we have an example of an xml serialization of a class in C#\n\nWhat version of the product are you using? On what operating system?\nr668\n\nPlease provide any additional information below.\nClass Test\n<code>\n    [ProtoContract, Serializable]\n    class ClassSTest : IXmlSerializable\n    {\n        [ProtoMember(1)]\n        string toto = \"Toto\";\n\n        public void Serial()\n        {\n            XmlWriterSettings xmlWriterSettings = new XmlWriterSettings\n            {\n                ConformanceLevel = ConformanceLevel.Fragment\n            };\n            Serializer.Serialize<ClassSTest>(XmlWriter.Create(\"toto.xml\", xmlWriterSettings), this);\n        }\n\n        XmlSchema IXmlSerializable.GetSchema() { return null; }\n        void IXmlSerializable.ReadXml(XmlReader reader) { Serializer.Merge(reader, this); }\n        void IXmlSerializable.WriteXml(XmlWriter writer) { Serializer.Serialize(writer, this); }\n    }\n</code>\n```\n\n-----\nOriginal issue reported on code.google.com by `harold.p...@gmail.com` on 27 Feb 2014 at 3:03"}}