Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating XML in C++ Code

Tags:

c++

dom

xml

In my project there are situations where we have to send xml messages (as char *) among modules. They are not really large ones, just 10-15 lines. Right now everybody just creates the string themselves. I dont think this is the right approach. We are already using xerces DOM library. So why not create a Dom tree, serialize it, and then send it.

What do you guys suggest?

like image 935
HappyGoLucky Avatar asked Jan 29 '09 20:01

HappyGoLucky


1 Answers

If you are really just creating small XML messages, Xerces is an overkill, IMHO. It is a parser library and you are not parsing anything.

like image 185
Nemanja Trifunovic Avatar answered Oct 06 '22 00:10

Nemanja Trifunovic