i dont have a pointer to the DomDocument... anyway here is an example of what i tried instead, but it does not work:
xercesc::DOMElement *carController= getDOMConfig(); // this gives me MY CONFIG the one above
xercesc::DOMNode *newCar = carController->getFirstChild()->cloneNode( false ); // this doesnt work
xercesc::DOMElement *car = static_cast<xercesc::DOMElement *>(carController->
appendChild( newCar )); // therfore this wont work also.
// ... here comes the saving the changes stuff
I am lost in what else to do.
How can I create a newCar node, in order for me to insert it into my carController node? Also If it doesnt have any child nodes yet.
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++.
The reason I built this class is to ease the pain of using XML files with C++, since there is…
One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…