Detect XML data starting with a declaration

Checking for "<?xml" at the beginning of a text is a quick and simple test
that will detect most of the XML cases.

This fills an obvious gap in #1537.
This commit is contained in:
mgrojo
2019-02-09 20:01:22 +01:00
parent e2443d685f
commit 3eebffd7c6
2 changed files with 11 additions and 2 deletions
+2 -1
View File
@@ -74,7 +74,8 @@ private:
Null,
Text,
JSON,
SVG
SVG,
XML
};
// Edit modes and editor stack (this must be aligned with the UI)