summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xml2cmp/source/xcd/parse.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/xml2cmp/source/xcd/parse.cxx b/xml2cmp/source/xcd/parse.cxx
index 72f565726a4c..fab09d926e36 100644
--- a/xml2cmp/source/xcd/parse.cxx
+++ b/xml2cmp/source/xcd/parse.cxx
@@ -82,6 +82,11 @@ X2CParser::Parse()
Parse_XmlDeclaration();
Parse_Doctype();
+ // skip XML comment
+ Goto('<');
+ if ( IsText("<!--") )
+ Goto_And_Pass('>');
+
pDocumentData->Parse(*this);
}