-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XMLDocument must support parsing of DTD elements, attributes, entities #231
Comments
@NikolasKomonen for your work with DTD parser, I suggest you read https://www.w3.org/TR/REC-xml/#dt-doctype to use the well name. For instance you have defined a custom DocumentType#getInternalDTD but it's the same thing than org.w3c.dom.DocumentType#getInternalSubset(). Other idea is prefering to store start/end offset instead of storing the string in the DocumentType. You can see a sample with DocumentType#getContent. It gives you 2 benefits:
Hope you will understand what I mean. |
@NikolasKomonen pay attention I have done a big refactoring to rename DOM structures (ex: Attr to DOMAttr). I have done that since suggestion of sonar. |
Scanner and parser supports now DTD tolerant parsing. I close this issue. If you find bugs, please create a new issue. |
Fixes eclipse-lemminx#231 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#231 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#231 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#231 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#231 Signed-off-by: Nikolas Komonen <[email protected]>
Fixes eclipse-lemminx#231 Signed-off-by: Nikolas Komonen <[email protected]>
This issue is very important of we wish to support DTD (I mean not validation, completion based on DTD inside XML, but I mean DTD content):
textDocument/definition
for DTD #233)textDocument/references
for DTD #234)@NikolasKomonen do you know when you could provide a PR for this issue? I need it for adjust DTD error. Thanks!
The text was updated successfully, but these errors were encountered: