question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Documents with an Internal Subset DOCTYPE had stopped trying to bind

See original GitHub issue

My organization has documents like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root [
    <!ENTITY foo "Bar">
]>

I’m trying to bind these documents using fileAssociations, but lsp4xml stops trying to bind at the DOCTYPE. It should continue looking for xsi:schemaLocation and in fileAssociations when the DOCTYPE lacks a DTD reference.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
angelozerrcommented, Jul 17, 2019

It’s a limitation of Xerces. But I found a topic about this problem https://www.oxygenxml.com/forum/topic12812.html#p36904 and Oxygen fixes the problem. The idea is to not validate XML with DTD (DOCTYPE) if DOCTYPE doesn’t define <!ELEMENT or doesn’t define PUBLIC, SYSTEM path.

I will try to follow this rule. I give you feedback if I can manage that.

0reactions
angelozerrcommented, Jul 31, 2019

Glad it works for you @zwaldowski .Many thanks for your feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is wrong with my XML file with an internal DTD subset?
This error is caused by the DTD file not being valid. You have created a DTD-file containing:
Read more >
SVG DTD not accepted · Issue #1114 · w3c/epubcheck - GitHub
Laurent's example document contains a DTD, which has an internal DTD subset only. No external entities can occur in XML documents unless they ......
Read more >
3.1.3. Internal DTD Subsets - XML in a Nutshell, 3rd Edition ...
Example 3-4 demonstrates. The part of the DTD between the brackets is called the internal DTD subset. All the parts that come from...
Read more >
Explanation of the error messages for the W3C Markup Validator
An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling...
Read more >
DTDs Don't Work on the Web - Henri Sivonen
When the DTD became unavailable, apps around the world stopped working. ... (For the internal subset, be sure to have protection against the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found