Skip to content

Relax NG schema validation not working when DOCTYPE declaration missing with file association #831

@AidanRandtoul

Description

@AidanRandtoul

The following error message appears above the root tag in the xml file:

Document root element must match DOCTYPE root "null"

With this error the validation based on the schema sometimes works however the completion and hover does not work at all. It cannot either complete based on exisiting tags in the file, which is something the extension supports when schema validation is switched off.

I am using Relax NG compact schema and the issue still occurs when using the non-compact schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrelaxng

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions