Skip to content

Validation of XML UTF-8 BOM file fails #299

@danielpeintner

Description

@danielpeintner

A simple code like the following with the attached XML file does not show the errors but struggles with the initial BOM and reports the error:

  • Content is not allowed in prolog.
Set<String> set =  new XmlSchemaValidator().validateSchema(xml);

The UTF-8 BOM is a sequence of bytes at the start of a text stream (0xEF, 0xBB, 0xBF) that allows the reader to more reliably guess a file as being encoded in UTF-8.

Note: I had to zip the XML file being able to attach it to the issue.
AAS_Template_for_AID.aas 1.xml.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions