From 3d8b883c15e5d665cd0308e6a9cdbe916f721c24 Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Mon, 7 Oct 2013 17:17:52 +0100 Subject: [PATCH] Fixes problems parsing XML docs with multiple PIs. --- lib/pure/xmlparser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/xmlparser.nim b/lib/pure/xmlparser.nim index 355053e0dc..16bbe1455b 100644 --- a/lib/pure/xmlparser.nim +++ b/lib/pure/xmlparser.nim @@ -110,7 +110,7 @@ proc parseXml*(s: PStream, filename: string, of xmlElementOpen, xmlElementStart: result = parse(x, errors) break - of xmlComment, xmlWhitespace, xmlSpecial: nil # just skip it + of xmlComment, xmlWhitespace, xmlSpecial, xmlPI: nil # just skip it of xmlError: errors.add(errorMsg(x)) else: