From 58eddc265200d1fec1677538e9712e23386cf76f Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Sun, 13 Oct 2013 15:39:56 -0400 Subject: [PATCH] Annotate XNode trees with legacy attribute --- src/XmlFileUtil.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/XmlFileUtil.cpp b/src/XmlFileUtil.cpp index 8a3561af5c..81b787d122 100644 --- a/src/XmlFileUtil.cpp +++ b/src/XmlFileUtil.cpp @@ -619,6 +619,9 @@ void XmlFileUtil::AnnotateXNodeTree( XNode *pNode, const RString &sFile ) /* Directory of caller, for relative paths: */ pNode->AppendAttr( "_Dir", sDir ); + + /* Note that this node came from a legacy XML file */ + pNode->AppendAttr( "_LegacyXml", true ); } }