/*
- * Copyright 2001-2005 Internet2
+ * Copyright 2001-2007 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
TS_ASSERT(sxObject.get()!=NULL);
sxObject->releaseThisAndChildrenDOM();
- auto_ptr<SimpleXMLObject> clonedObject(sxObject->clone());
+ auto_ptr<SimpleXMLObject> clonedObject(dynamic_cast<SimpleXMLObject*>(sxObject->clone()));
VectorOf(SimpleXMLObject) kids=clonedObject->getSimpleXMLObjects();
TSM_ASSERT_EQUALS("Number of child elements was not expected value", 3, kids.size());