I need to be able to convert from proto to xsd, I know that there is some tools to convert from XSD to PROTO, but I need the oppositive.
Could be in .NET or Java
Thanks
You did not specified example of XSD you'd like to receive in the end. Actually, there are multiple ways how Protobuf messages could be represented in XSD.
Some of questions may arise:
string/bool/int
)?xs:sequence
or xs:all
in your xs:complexType
definitions?)I had same issue not so far. I solved my task and described it in blog post.
Solution for my task was:
protogen.exe
to serialize PROTO to XML representationActually, I wrote XSLT for protogen.exe
to generate XSD. Using it, this PROTO will be converted to this XSD.
You can customize this XSLT for your needs. Hope this helps!