[protobuf] Re: Is any method available to convert a protobuf object to XML?

2011-06-24 Thread Lars Schouw
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.PrepareSerializerTest(); XmlSerializer x = new

Re: [protobuf] Re: Self describing messages

2011-06-24 Thread Jason Hsueh
What are you still missing? The code you've written ought to work after changing to pass the correct FileDescriptor object to DynamicMessage. On Fri, Jun 24, 2011 at 12:27 AM, slookin sloo...@gmail.com wrote: Yes, in generally it is not Self Describing, but couldn't implement real self

Re: [protobuf] Re: Is any method available to convert a protobuf object to XML?

2011-06-24 Thread Marc Gravell
The code shown uses XmlSerializer - it doesn't use protobuf-net at all. protobuf-net does tend to be friendly towards this, however you would: - deserialize with protobuf-net into objects - serialize with XmlSerializer The only point of co tact between the two is the object model in the middle.

[protobuf] PROTOMAK 0.0.2.RELEASE just released

2011-06-24 Thread Marco Tedone
Hi, Protomak is a tool to auto-convert XSDs to .proto files. We have just released version 0.0.2.RELEASE. You can find out more at http://www.jemos.eu/projects/protomak Regards, Marco -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post