Allow XML documents without an XML declaration node

This commit is contained in:
Ray Speth 2015-04-20 12:11:25 -04:00
parent 96cf312ec6
commit 39b93d3690

View file

@ -286,7 +286,7 @@ XML_Node* Application::get_XML_from_string(const std::string& text)
}
std::stringstream s;
size_t start = text.find_first_not_of(" \t\r\n");
if (text.substr(start,5) == "<?xml") {
if (text.substr(start,1) == "<") {
s << text;
} else {
s << ctml::ct_string2ctml_string(text);