Skip to content

DTD Validation and GIT Repository throws errors in GIT files #861

@Thallius

Description

@Thallius

Hi,

easy to reproduce:

Create a new folder:

Create a DTD file person.dtd

<!ELEMENT person ( first_name) >

Create a XML file person.xml with a reference to a DTD file

<?xml version="1.0" ?>
<?xml-model href="person.dtd" ?>
<person>
<first_name>Michael</first_name>
</person>

Go to terminal and type

git init
git add *
git commit -m"test"

Now vscode will show you a problem in file

person.xml.git

  • Cannot find DTD 'git:/c%3a/Users/path_to_my_folder/person.dtd

which normally does not exists

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions