Thanks Gravell's support on this issue.

In terms of the difficulities,  we try to use another solution, use protobuf to 
produce C++ object,  then convert C++ object to XML by serialization moudle on 
boost library.


At 2011-06-22 13:25:16,"Marc Gravell" <marc.grav...@gmail.com> wrote:
There's no direct XML relationship to protobuf. Any available tooling will 
relate to your local platform / language / runtime / etc.


As it happens, I do this regularly in .NET using protobuf-net and XmlSerializer 
(the inbuilt .NET xml serializer) - which works great because protobuf-net has 
been designed to work with similar idioms. This, however, is a different API to 
the more typical Java / C++ etc clients, and I can' t comment on how easy it 
would be to serialize those as xml.


The fact that both are tree formats (rather than graph formats) means there 
aren't any fundamental problems - it is just a case of getting your chosen (and 
platform specific) xml serializer to understand the map.


Marc


On 21 June 2011 12:27,yujianhua1...@126.com<yujianhua1...@126.com> wrote:
Hey all;

Is any method available to convert a protobuf object to XML?  The
backgound of this question is that original projects the all based on
XML to serial object,  we need  a bridge to convert current protobuf
object to XML runtime?

Questions:
1. Is this kind of solution availabe now?
2. If yes, how to?  If not, could you give me some guideline how to
design and implement it?

Any idea please share, thanks in advance.

--
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email toproto...@googlegroups.com.
To unsubscribe from this group, send email 
toprotobuf+unsubscr...@googlegroups.com.
For more options, visit this group 
athttp://groups.google.com/group/protobuf?hl=en.





--
Regards,

Marc

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
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.

Reply via email to