Fixes problems parsing XML docs with multiple PIs.

This commit is contained in:
Dominik Picheta
2013-10-07 17:17:52 +01:00
parent eaf4da0411
commit 3d8b883c15

View File

@@ -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: