Replies: 1 comment 2 replies
-
|
Hop’s Get data from XML always rejects DOCTYPE for security, so files with <!DOCTYPE> fail when scanning nodes. There’s no user switch for that path (XML_ALLOW_DOCTYPE_DECL doesn’t apply here). Fix: strip the DOCTYPE or type XPaths by hand; a proper fix needs a code change in Dom4JUtil. Can you set disallow-doctype-decl to false? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using the "Get data from XML", I load the file and when I go to get the xpaths nodes I get the following: InvocationTargetException: Error scanning file [/home/tawa/Descargas/1.xml]! org.dom4j.DocumentException: Error on line 1 of document file:///home/tawa/Apps/hop/UTF-8 : DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.
Root cause: SAXParseException: DOCTYPE is disallowed when the feature "http://apache.org/xml/features/disallow-doctype-decl" set to true.
How do I change disallow-doctype-decl set to false? Anyone?
Beta Was this translation helpful? Give feedback.
All reactions