How to deserialize an XML file created in C # into native C ++? More specifically, there is an XML file created in C # that represents the serialization of C # objects. It is required to read it through native C ++ so as to deserialize the objects written in it. The standard C ++ library does not support this feature. - Which external libraries support this feature? - At first glance, BOOST. Does anyone have any experience using BOOST for this purpose?

  • In principle, it doesn't matter where the XML was created. And you can read in most cases, for example using tinyxml. - Vladimir Gamalyan
  • one
    You can use the parser generator, which, according to the XML schema, will produce a set of C ++ classes and parser code. Here is a list of similar utilities, some for C ++. - Alexander Petrov
  • Quite a common question. If you wanted to find out if there are specialized tools in the standard C ++ library, then the answer is no, but, as mentioned above, there are solutions in the form of external libraries. - Dimanesson
  • Suppose you somehow deserialized C # objects in C ++, how do you imagine further work with them? I hope you don't expect them to act as if it were C #? - Vladimir Gamalyan
  • @VladimirGamalian Good question. As I understood the installer, these are simple data structures. But I will clarify, thanks! - ARCHA

0