Fixes problems parsing XML docs with multiple PIs.
This commit is contained in:
parent
eaf4da0411
commit
3d8b883c15
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ proc parseXml*(s: PStream, filename: string,
|
||||||
of xmlElementOpen, xmlElementStart:
|
of xmlElementOpen, xmlElementStart:
|
||||||
result = parse(x, errors)
|
result = parse(x, errors)
|
||||||
break
|
break
|
||||||
of xmlComment, xmlWhitespace, xmlSpecial: nil # just skip it
|
of xmlComment, xmlWhitespace, xmlSpecial, xmlPI: nil # just skip it
|
||||||
of xmlError:
|
of xmlError:
|
||||||
errors.add(errorMsg(x))
|
errors.add(errorMsg(x))
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue