S
S
Sergey2016-01-18 18:06:19
C++ / C#
Sergey, 2016-01-18 18:06:19

How to generate code from XML?

a) Can you please tell me how to generate C/C++ code from an xml document ( xsd? )? What utilities/libraries are there for this (under linux, but better cross-platform)?
b) How to implement it in conjunction with CMake?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stanislav Makarov, 2016-01-18
@Nipheris

In xml(xsd) there is a list of some elements from which you need to generate a lot of C / C ++ code, which is long, tedious and fraught with typos to write (and edit) by hand.

Well then, take XSLT and you can generate whatever you want, even a fairy tale. I can't recommend anything more specific.

X
xmoonlight, 2016-01-18
@xmoonlight

Take www.altova.com/xml_tools.html and further according to the situation.

M
Mingun, 2016-01-28
@Mingun

If you need to generate XML reader/writer code (like XmlBeans for Java), you can look at www.codesynthesis.com/products/xsd/. Although, as it was written in the comments, the question is not clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question