Protobuf serialization and de-serialization for XML based on C++.

47 views
Skip to first unread message

jianhua

unread,
Jul 6, 2011, 5:57:51 AM7/6/11
to protobuf-java-format, dyupr...@gmail.com
Hey All;

Protobuf serialization and de-serialization for XML, I need this
feature in my regression testing framework, but my project is based on
managed C++.

Questions:

1. Is there any C++ ser/deser protobuf plug-in available then I can
resue it directly?

2. For #1, if not available, could you guys give me some tips on how
to write this plug-in? In my opinion two public methods need to be
added, toXML and fromXML.

Any idea or tip please let me know, thanks in advance.

Jeffrey Damick

unread,
Jul 11, 2011, 8:48:31 AM7/11/11
to protobuf-java-format
I haven't seen a c++ version, but it should be fairly easy to adapt
the TextFormat class in src/google/protobuf/text_format.h|.cc to
output xml using expat or libxml2 to do what you want..
Reply all
Reply to author
Forward
0 new messages