*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
string path=data_path + "SimpleXMLObjectWithAttribute.xml";
ifstream fs(path.c_str());
DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);
string path=data_path + "SimpleXMLObjectWithAttribute.xml";
ifstream fs(path.c_str());
DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);
auto_ptr_XMLCh expected("Firefly");
TSM_ASSERT("ID was not expected value", XMLString::equals(expected.get(), sxObject->getId()));
auto_ptr_XMLCh expected("Firefly");
TSM_ASSERT("ID was not expected value", XMLString::equals(expected.get(), sxObject->getId()));
string path=data_path + "SimpleXMLObjectWithContent.xml";
ifstream fs(path.c_str());
DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);
string path=data_path + "SimpleXMLObjectWithContent.xml";
ifstream fs(path.c_str());
DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);
auto_ptr_XMLCh expected("Sample Content");
TSM_ASSERT("Element content was not expected value", XMLString::equals(expected.get(), sxObject->getValue()));
auto_ptr_XMLCh expected("Sample Content");
TSM_ASSERT("Element content was not expected value", XMLString::equals(expected.get(), sxObject->getValue()));
string path=data_path + "SimpleXMLObjectWithChildren.xml";
ifstream fs(path.c_str());
DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);
string path=data_path + "SimpleXMLObjectWithChildren.xml";
ifstream fs(path.c_str());
DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);
VectorOf(SimpleXMLObject) kids=sxObject->getSimpleXMLObjects();
TSM_ASSERT_EQUALS("Number of child elements was not expected value", 3, kids.size());
VectorOf(SimpleXMLObject) kids=sxObject->getSimpleXMLObjects();
TSM_ASSERT_EQUALS("Number of child elements was not expected value", 3, kids.size());
string path=data_path + "SimpleXMLObjectWithChildren.xml";
ifstream fs(path.c_str());
DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);
string path=data_path + "SimpleXMLObjectWithChildren.xml";
ifstream fs(path.c_str());
DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);
sxObject->releaseThisAndChildrenDOM();
auto_ptr<SimpleXMLObject> clonedObject(dynamic_cast<SimpleXMLObject*>(sxObject->clone()));
sxObject->releaseThisAndChildrenDOM();
auto_ptr<SimpleXMLObject> clonedObject(dynamic_cast<SimpleXMLObject*>(sxObject->clone()));
string path=data_path + "SimpleXMLObjectWithUnknownChild.xml";
ifstream fs(path.c_str());
DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);
string path=data_path + "SimpleXMLObjectWithUnknownChild.xml";
ifstream fs(path.c_str());
DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);