Skip to main content

Posts

Showing posts from May, 2016

UNISA COS3711 Practice: XML

Given the class definitions and sample XML file below, write code for the constructor and addAnimal() function of AnimalWriter to append the state of an Animal object to the XML document maintained by the animalWriter class (so that it follows the XML example given below). The XML animal.h animalwriter.h animal.cpp animalwriter.cpp main.cpp