Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation of XML UTF-8 BOM file fails #299

Open
danielpeintner opened this issue May 2, 2024 · 0 comments
Open

Validation of XML UTF-8 BOM file fails #299

danielpeintner opened this issue May 2, 2024 · 0 comments

Comments

@danielpeintner
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant