Skip to content

UTF-8-BOM Encoding leads to an error #753

@FrBoehle

Description

@FrBoehle

Describe the bug
When parsing a xml file with UTF-8-Encoding, the parser throws an error and is unable to continue. Is this intended behaviour?

This error was not present before i updated to 0.9.

The error reads:
"processing instruction at position 1 is an xml declaration which is only at the start of the document"

To Reproduce
Try to parse a file with UTF-8-BOM encoding.

Expected behavior
Parser can ignore UTF 8 BOM symbol EF BB BF.

Runtime & Version:
xmldom version: 0.9.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions