You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default xml.validation.resolveExternalEntities is set to false for security issue. It is nice but it can be hard for user to know why XML validation / completion based on DTD doesn't work when xml.validation.resolveExternalEntities is set to false.
I encountered the problem and I though it was a bug from LemMinx, but after debugging LemMinx I noticed that it was just a problem with xml.validation.resolveExternalEntities which should be set to true.
Here my usecase.
my xml.validation.resolveExternalEntities was set to false.
I open vscode
I created a SVG file like this:
<!DOCTYPEsvg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svgwidth="5cm"height="4cm"version="1.1"
xmlns="http://www.w3.org/2000/svg">
</svg>
LemMinx download the DTD and after that I see those error:
at this step, I had the impression that LemMinx was bugged, but the fix is to set xml.validation.resolveExternalEntities to true
but even if you swith this setting to true, you have again the error. You have validation error and completion based on DTD doesn't work.
you need to close vscode and reopen it. And now validation and completion based on DTD is working:
We need really improve that:
provide a code action which set xml.validation.resolveExternalEntities to true
By default
xml.validation.resolveExternalEntities
is set to false for security issue. It is nice but it can be hard for user to know why XML validation / completion based on DTD doesn't work whenxml.validation.resolveExternalEntities
is set to false.I encountered the problem and I though it was a bug from LemMinx, but after debugging LemMinx I noticed that it was just a problem with
xml.validation.resolveExternalEntities
which should be set to true.Here my usecase.
xml.validation.resolveExternalEntities
was set to false.xml.validation.resolveExternalEntities
to trueWe need really improve that:
xml.validation.resolveExternalEntities
to truexml.validation.resolveExternalEntities
eclipse-lemminx/lemminx#1123The text was updated successfully, but these errors were encountered: