This is probably a c++ question more than a juce question but here goes.
How can I create a derived class from XmlElement that has a few more functions?
For example:
void CXmlElement::setAttribute (const String &attributeName, int *pInts, int numInts); void CXmlElement::getAttribute (const String &attributeName, int *pInts, int numInts); CXmlElement *CXmlElement::createNewChildElement(const String &attributeName); CXmlElement *CXmlElement::getChildByName(StringRef tagNameToLookFor); CXmlElement *CXmlElement::getChildElement(int index);
The problems are:
1) How to create a child CXmlElement. Can you down cast/up cast createChildElement/getChildByName etc.
2) To read in the element I am using XmlDocument::parse. So again is there a down cast/up cast solution.
I hope this is clear. Any solutions are welocme. I could add these directly to the juce code, bu prefer not to.