-
Notifications
You must be signed in to change notification settings - Fork 1
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
XML Prolog in aas-spec causes error on deserialization of AASX package #24
Comments
@CHRiSLY78 thanks for posting the issue! Please have a look at the note regarding https://aas-core-works.github.io/aas-core3.0-csharp/getting_started/xmlize.html#de-serialize Please re-open if it does not solve the issue. |
I'm leaving this open as the error message needs to improve. |
When we encountered XML declarations, we threw exceptions with uninformative messages. Namely, we expect the reader to be moved to the content, but most users omitted to read that in the documentation. We refine the error message for this particular situation, and hint at `MoveToContent` method on the reader. See [this aas-core3.0-csharp issue] for more details. [this aas-core3.0-csharp issue]: aas-core-works/aas-core3.0-csharp#24
When we encountered XML declarations, we threw exceptions with uninformative messages. Namely, we expect the reader to be moved to the content, but most users omitted to read that in the documentation. We refine the error message for this particular situation, and hint at `MoveToContent` method on the reader. See [this aas-core3.0-csharp issue] for more details. [this aas-core3.0-csharp issue]: aas-core-works/aas-core3.0-csharp#24
When we encountered XML declarations, we threw exceptions with uninformative messages. Namely, we expect the reader to be moved to the content, but most users omitted to read that in the documentation. We refine the error message for this particular situation, and hint at `MoveToContent` method on the reader. Fixes #24. Generated with [aas-core-codegen 28fbd98]. [aas-core-codegen 28fbd98]: aas-core-works/aas-core-codegen@28fbd98
When we encountered XML declarations, we threw exceptions with uninformative messages. Namely, we expect the reader to be moved to the content, but most users omitted to read that in the documentation. We refine the error message for this particular situation, and hint at `MoveToContent` method on the reader. Fixes #24. Generated with [aas-core-codegen 28fbd98]. [aas-core-codegen 28fbd98]: aas-core-works/aas-core-codegen@28fbd98
@CHRiSLY78 a new patch version should be on nuget soon: https://github.com/aas-core-works/aas-core3.0-csharp/releases/tag/v1.0.0-rc5 |
Trying to deserialize an AASX package containing an XML aas-spec with leading XML prolog I get the following error message:
(nothing after at:)
Not working example:
Removing the XML prolog from aas-spec file within the package resolves the error.
Working example:
I was not able to find any restriction to XML prologs in part 5 of the specification or at https://github.com/admin-shell-io/aas-specs/tree/master/schemas/xml. And it would surprise me, if there were any in this case to be honest.
Have I overseen something or might this be wrong behavior on aas-core side?
The text was updated successfully, but these errors were encountered: