Skill improvement for jmix-ide-static-analysis

Hello,

I recommend adding the following check to jmix-agent-toolkit/content/skills/jmix-ide-static-analysis/SKILL.md at v3 · jmix-framework/jmix-agent-toolkit · GitHub

View XML file should start with clean <?xml
.. or something to that effect.
It can happen that an agent can add things like UTF-8 BOM at the beginning of the file, and SAX parser will treat that as content.
resulting with
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

In my case, it was a PowerShell command that edited the XML file and added the erroneous content.

Kind regards,
Mladen

Hi, Mladen!

Thank you for the feedback! I’ve opened a PR based on your suggestion: Detect malformed XML prolog in view descriptors (70) by Flaurite · Pull Request #71 · jmix-framework/jmix-agent-toolkit · GitHub