Anybody thinking about transforming DTD, XML Schema and XML docs into Protocol Buffers?

74 views
Skip to first unread message

Kaj Kandler

unread,
Jul 9, 2008, 1:21:15 PM7/9/08
to Protocol Buffers
I bet a lot of people have already XML data and it would be helpful to
develop tools to translate this into ProtocolBuffers?

What would be the limitations?

Kaj

Kenton Varda

unread,
Jul 9, 2008, 1:33:13 PM7/9/08
to Kaj Kandler, Protocol Buffers

The tricky part is that XML has a lot more "features" than protocol buffers, and it's not clear how those should be represented.  For example, how do you treat interleaved text?  You could come up with all kinds of algorithms for mapping XML structured to protobufs, but I'm not sure there's any solution that would work well for everyone.

Given a mapping algorithm, it's not hard to write a program that uses protobuf reflection to map an arbitrary XML document a protocol message using that algorithm.
Reply all
Reply to author
Forward
0 new messages