[protobuf] Re: XML to Protocol Buffers converter for CWMP xml files from https://www.broadband-forum.org

2017-08-26 Thread JaeMann Yeh
https://github.com/jaemannyeh/cwmp_grpc cwmp_grpc gRPC server and client examples for CWMP demonstrate how to use .proto and .methods files which are generated by cwmp_xml_to_proto (https://github.com/jaemannyeh/cwmp_xml_to_proto). You can use .methods files to implement gRPC server's service

[protobuf] Re: XML to Protocol Buffers converter

2016-05-17 Thread Huimin
Hello Simon, Sorry! I forgot to mention that I am interested in XML to Protocol Buffers converter in java. Thanks! Huimin On Monday, September 28, 2009 at 9:14:52 AM UTC-4, sim wrote: > > Hi all. Would anybody be interested in an XML to Protocol Buffers > converter if it were opened up to the co

[protobuf] Re: XML to Protocol Buffers converter

2016-05-17 Thread Huimin
Hello Simon, I am interested in the XML to Protocol Buffers converter. Is it opened up to the community? Where can I get it? Thanks a lot for your support! Huimin On Monday, September 28, 2009 at 9:14:52 AM UTC-4, sim wrote: > > Hi all. Would anybody be interested in an XML to Protocol Buffers >

[protobuf] Re: XML to Protocol Buffers converter

2015-07-16 Thread Aravinth Veeramuthu
How to convert the XML data into the Protocol buffer format in c++??? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com.

[protobuf] Re: XML to Protocol Buffers converter

2009-12-05 Thread tranchis
Hi all, Just out of need, we needed a converter from XSD to Thrift and we have coded it in Java, using XSOM. It's available at http://github.com/tranchis/xsd2thrift The way it's done, it would be really simple to encode the output for Protocol Buffers as well. If you think it might be interestin

[protobuf] Re: XML to Protocol Buffers converter

2009-12-03 Thread Alex Antonov
Jason, there is a project that contains the XML & JSON marshalers for protobuf and back which would do exactly what you want: http://code.google.com/p/protobuf-java-format Thanks, Alex On Oct 13, 3:35 pm, Jason Smith wrote: > I wrote a generic proto-to-xml routine (using TinyXML) that'll convert

[protobuf] Re: XML to Protocol Buffers converter

2009-11-25 Thread Kartik
Hi Jason I'm trying to feed an application which only takes XML but I only receive data as protocol buffers. Would it be possible for you to share the proto-to-xml routine that you made? Thanks, Kartik On Oct 13, 4:35 pm, Jason Smith wrote: > I wrote a genericproto-to-xmlroutine (using TinyXML)

Re: XML to Protocol Buffers converter

2009-10-13 Thread Kenton Varda
Reflection::AddMessage() will automatically allocate the correct type -- you don't have to do it yourself. In fact, you aren't allowed to do it yourself. (The Message* which you pass to AddMessage() is supposed to point at the *parent* message, just like with all the other reflection methods.) In

Re: XML to Protocol Buffers converter

2009-10-13 Thread Jason Smith
I wrote a generic proto-to-xml routine (using TinyXML) that'll convert any Message* into XML. Thanks to the reflection interface and TextFormat, it was pretty straightforward. (if there's interest in seeing it let me know... I'll clear it with my boss and post to this forum). Now I'm trying to

Re: XML to Protocol Buffers converter

2009-09-29 Thread Kenton Varda
Well, either system can convert either way (hopefully). The question is in which format the user prefers to write their schemas -- they should only have to write one. Personally I'd prefer to write mine in .proto, but I'm probably biased. :) On Tue, Sep 29, 2009 at 3:06 AM, sim wrote: > > Coo

Re: XML to Protocol Buffers converter

2009-09-29 Thread sim
Cool. New syntax I didn't know about! I think this would be useful for converting the other way around (Proto-to-XML). On Sep 28, 6:05 pm, Kenton Varda wrote: > Interesting. > > Another way to do this would be to write code based on protobuf reflection > and custom options, so you could have a

Re: XML to Protocol Buffers converter

2009-09-28 Thread Kenton Varda
Interesting. Another way to do this would be to write code based on protobuf reflection and custom options, so you could have a proto like: message Foo { optional int32 i = 1 [(xml_disposition) = ATTRIBUTE]; optional Bar bar = 2 [(xml_disposition) = ELEMENT]; } On Mon, Sep 28, 2009 at