Allow XML documents without an XML declaration node
This commit is contained in:
parent
96cf312ec6
commit
39b93d3690
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue