-
Notifications
You must be signed in to change notification settings - Fork 82
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
OpenQuoteExpected error for ATTLIST breaks DTD validation #943
Comments
Could you share your xml and ďtd files please. |
Yes of course Also once corrected: |
Also you can make something better with netbeans.... But id like to see all the errors at once generated, as vscode-xml do it when xml file is not well formed. The better place i found is the online validator linked in previous post... Thanks |
Edited first post, because i uploaded the same image twice...No you can see at least two errors validating the xml against a DTD file... |
Testing your sample files, I found an error in the XML language server:
|
I tested now and I discover the same problem. @ejgutierrez74 vscode-xml should manage your DTD validation like you wished (show error detail instead of just 1 error) but it seems that we have a bug with your DTD |
Perhaps something related to #945 . vscode-xml could not detect or get the DTD file so it gives the first error....Just an idea... Im a teacher of computer science in vocational education and this error has been reproduced by different students also |
??What do you mean ? That the xml file is wrong ? Its well formed accorded to vs-code, xml-copy editor and netbeans.... |
Also if possible would be nice like XML Copy Editor, from Command Palette or whaever....one instruction to test if the xml file is well formed...and other to Validate XML. No seems that vs-code runs it all together.... Just a suggestion |
@ejgutierrez74 indeed it is a bug from vscode xml. I plan to fix soon |
I understand what you mean, please create a new issue for that and let this issue to fix your DTD bug.
I'm working on it now. |
Fixes redhat-developer/vscode-xml#943 Signed-off-by: azerr <[email protected]>
Fixes redhat-developer/vscode-xml#943 Signed-off-by: azerr <[email protected]>
@ejgutierrez74 I have fied the bug and now you can see the error in XML: if you click on the DTD error link Is it the behavior that you expect? Please note that XML syntax validation doesn't work if the DTD is not valid. I have not found a solution to fix it. |
Fixes redhat-developer/vscode-xml#943 Signed-off-by: azerr <[email protected]>
Fixes redhat-developer/vscode-xml#943 Signed-off-by: azerr <[email protected]>
Fixes redhat-developer/vscode-xml#943 Signed-off-by: azerr <[email protected]>
First of all thank you for your effort and work. Second when can i test it ? New release ? Third: for me not a bad solution, for me i dont know even if its possible, in the output/problems console put a list of all the validation errors, not just the first one ( just like when you test a xml file is well formed). pd: i opened as you suggested a new issue regarding this, and i have answer you |
the DTD parser is not really fault tolerant, so you only get 1 DTD error at a time. The fix will be available has a pre-release soon after it's merged |
We stop reporting dtd error when there are a fatal error coming from Xerces. It will avoid reporting bad errors once the first error is fixed. |
Fixes redhat-developer/vscode-xml#943 Signed-off-by: azerr <[email protected]>
@ejgutierrez74 once pre release build will be done (I think tomorrow), you will able to install pre release https://github.com/redhat-developer/vscode-xml#contributing to enjoy with the fix. |
@ejgutierrez74 is it working now with the pre release? |
Oh sorry then its fixed...as far as i have tested these days... |
Great thanks for your feedback. If there are no bugs you should see dtd error now in the description for other dtd écrous and you click on the link error to open the dtd file and jump to the proper location of the error. |
Can i expect some new release with this fix near soon ?... Because in my institute we have a strict policy of manage software( students dont have admin permissions).. so one teacher have to install the software and extensions... Thanks for your effort and work |
Im trying to validate xml file against DTD file.
The problem is that vscode-xml only says that is an error in DTD file...no more info...and then is difficult to debug...
But if you use a internet/online validator the info is much clearer ( for example https://www.xmlvalidation.com/ ):
or this:
So im missing something ? is there any chance that vscode-xml should show a list of errors/warnings.like when you test if an xml file is well formed ? Would be really useful...
The text was updated successfully, but these errors were encountered: