Yes, for example in C# you can do like this to create an XPathDocument using the protobuf-net lib.
public static XPathDocument Serialize(ProtocolBufferMesage msg) { XPathDocument xmlDoc = null; Serializer.PrepareSerializer<Test>(); XmlSerializer x = new XmlSerializer(msg.GetType()); using (MemoryStream memoryStream = new MemoryStream()) { using (TextWriter w = new StreamWriter(memoryStream)) { x.Serialize(w, msg); memoryStream.Position = 0; xmlDoc = new XPathDocument(memoryStream); } } return xmlDoc; } -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/E_KNwOPbenoJ. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.