added CXMLDocument and CJSONDocument classes