Comments (17)
Hi, have you tried disabling "Prohibit DTD" feature in XMLTools Options dialog ?
By default, MSXML 6 disables DTD support due to security purposes (details here).
from xmltools.
On the other hand, I'm hitting this same problem (I have "prohibit DTD" = false and "resolve externals" = true but I'm still being prompted for a XSD file and namespace URI when trying to validate XML with a DTD file) in 3.1.1.10. Any suggestions?
Thanks!
from xmltools.
Hi,
yes I tried but id does not help. I also did a compare with an older relase and saw a piece of code is missing in the XMLValidation function.
Thank you,
from xmltools.
OK, I understand now.
but the prohibit is default. Maybe the option should enable the DTD as it is prohibited by default.
This is the error I get trying to use the Prohibit DTD flag.
Thank you
from xmltools.
Hi, I come back on initial post.
Please can you either give more informations on the issue or provide an example ?
You mention "DTD validation is not working any more", but it would help if you explain what is wrong (error message, wrong behaviour, etc.)
I tried validating xml with DTD using both syntax:
<!DOCTYPE catalog SYSTEM "books.dtd">
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD TEST Composite//EN" "books.dtd">
and both worked as expected.
Thanks
from xmltools.
Hi,
I have a file which has a DTD like your and when I click validate it shows the dialog to insert XSD schema. I tried to paste the path to the DTD file but it is not solving the problem. I verified the path of the DTD and it is OK, but the are not local like yours (are in a different folder)
Thank you
from xmltools.
Very strange.
Can you tri with latest version available here: https://github.com/morbac/xmltools/releases/tag/3.0.4.3
Thks
from xmltools.
Hi,
I have tried the new version and the issue is still the same. I have also tried to use an older version
Which works fine with the same file.
from xmltools.
Indeed, something is wrong in the validation, I have tried the latest version indicated in this thread and I do not see that it improves.
The question is:
-If I want to validate an xml with external dtd without Xsd shema, it asks for the XSD, then ... it is not validating the dtd.
Previously it offered a window reporting "DTD validation: XML is valid" now only "No error detected", as if it was just performing a syntax check.
The errors found in the validation of an xsd, previously showed them in a list, all. Now, only the first one you find in red on the code, until it is not solved you do not know the next. I think the error summary is very interesting.
Conclusion:
By not indicating "valid" you are left with the doubt if you have validated it.
I edit:
I have been testing versions, in 2.4.11.0 everything is validated perfectly and shows the correct message.
from xmltools.
The same problem as above. Pair of xml and xsd files, Win 10 2004, NPP 7.8.7 32 bit. The old validator 2.3.2 and the freeformatter on-line validator works well while 3.0.4.2 shows the message "Invalid schema or missing namespace"
from xmltools.
After changing to version 3.0.4.3 another message is displayed. Translation from Polish: The node is not valid or invalid - no DTD schema declaration or definition was found
from xmltools.
I just tried this on the books-well-formed.xml example.
This happens -before- the schema popup. So, when the schema-popup opens, that means that the XML / DTD validation has already passed. Yeah, that is a bit nasty....
However, for this to work, I had to disable "prohibit DTD" and enable "resolve externals", otherwise I got the following error:
After tweaking these 2 settings, and if you still have the same errors.. would it be possible to share the XML / DTD files (or a small subset of them)?
from xmltools.
Tweaking these 2 settings has helped! Thank you.
from xmltools.
Hi,
I'm on 3.1 and have "prohibit DTD" = false and "resolve externals" = true but I'm still being prompted for a XSD file and namespace URI when trying to validate XML with a DTD file.
Any suggestions?
Thanks.
from xmltools.
Hi, a fix has been done in 3.1.0.1
Please can you test if it's ok ?
Thanks
from xmltools.
Hi morbac,
3.1.01 fixes the problem. Thanks for the prompt response.
from xmltools.
Still having the same problem at 3.1.1.15 where the validator will parse the XML , but then ignore the external DTD. Does work if the DTD is internal/inline, but not if it's external. Always insists on setting up an XML Schema instead. The XML parser actually checks for the presence of the dtd file, but then the validator just doesn't use it.
I've found out that if I click OK through the XML Schema dialog (without entering anything) the validator does use the DTD.
from xmltools.
Related Issues (20)
- Copy XPATH from STATUS BAR with Name;ID
- Request: add support for ends-with
- DTD is prohibited
- Request/Question: xml-tool "pretty print - indent attributes" via commandline or in batch HOT 1
- Validation of XML against Schema fails with no DTD/Schema declaration was found
- Pretty print not adding proper tabs HOT 2
- how to make the "mark done" disappear depending on a condition in Odoo14
- Evaluate XPath expression, XPath copying through `Current XML path` gives no result and dialog gives no hint HOT 2
- Can't click or copy an URL displayed in Plugins -> XML Tools -> Options...
- Unable to PrettyPrint an Xml File with the given shortcut
- NPP XML plug-in locks most recently used folder HOT 3
- "Pretty print ALT+SHIFT+B" command drops BOM on UTF-8 BOM files
- Annotation error mode does not respect word wrap enabled
- Pretty Print does not auto change language to XML HOT 1
- Does not handle html5 style void tags such as source, img and picture
- `noNamespaceSchemaLocation` not found in case of domain redirection
- Security Review for End User Use
- Validation using xsd file doesn't work.
- choose XSLT processor / transformer engine?
- The latest version of xmltools is not compatible with the latest version of Notepad++
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmltools.