XML parser: error reporting in attribute values

While playing with custom XML code completion, I noticed a place where there seems to be missing syntax error reporting in the AlterNET parser.

When not closing the attribute value, I observe this result:

Visual Studio reports an error:

VS seems to be correct - the “<” char is forbidden: xml serialization - Which characters are Invalid (unless encoded) in an XML attribute? - Stack Overflow

Don’t know whether this would also have an influence on syntax highlighting. The VS result looks better :wink:

Best regards

Wolfgang

Hi Wolfgang,

Thank you for reporting this problem, it’s been fixed, and the fix will be included in the coming update.

Kind regards,
Dmitry

1 Like

Great, thanks!

Best regards

Wolfgang

Hi Wolfgang,

We have just released an update via NuGet (version 9.1.2), where this issue should be addressed.

Please let me know if it works as you expect.

Kind regards,
Dmitry

Thanks, perfect! I can confirm that the error is reported now.

By the way: you have a typo in the newly introduced localization field “StringConsts.InvalidCharatcerInAttributeValues” :wink:

Best regards

Wolfgang

Hi Wolfgang,

Agh, that’s a bad one :slight_smile: It will be definitely fixed.

Dmitry