1,442 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
57
views
XML DTD - is it possible to dynamically fill part of !ENTITY path?
I need to build a web application on server with different color skins for 2 different enviroments (test/prod), so users can easily at first glance tell, which enviroment, they're using.
In web.xml ...
1
vote
2
answers
79
views
Visual Studio: XML validation against DTD fails — how to find the error?
Environment: Windows 12, Visual Studio 2022 (Community Edition)
I’m trying to validate an XML file against its DTD in Visual Studio.
When I run the validation, I get the error.
xml file (sample.xml)
&...
0
votes
2
answers
279
views
Is there a way to resolve "Downloading external resources is disabled" in hibernate.cfg.xml without using workarounds?
I have created a new Maven project in Eclipse version 2025-03 (4.35.0) with STS 4.30.0, running Java 24, Runtime Environment (build 24+36-3646) using a Windows 11 machine with only myself as user and ...
1
vote
2
answers
129
views
xmllint not validating with DTD when --stream used
I'm trying to use xmllint to validate very large (3-4 gig) XML files against an external DTD using the --dtdvalid switch. It appears that when also using --stream, no DTD validation occurs.
I've ...
0
votes
0
answers
63
views
How to fix the missing DTD namespace declaration error of DOMDocument::validate() in PHP, resulted by reading a non-standard SVG file?
I got SVG files exported from Coreldraw or Inkscape:
Coreldraw exported SVG file header:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG ...
0
votes
2
answers
58
views
DTD - Is there a way to validate the attribute value?
I want to validate the value of an attribute element value.
I have an element as
<makeOverText id="common02V1"></makeOverText>
For this I have a dtd as below,
<!ATTLIST ...
-4
votes
1
answer
265
views
Why is the Unicode micro character µ (U+00B5) not included as a valid XML NameChar? [closed]
In composing an XML DTD, <!ENTITY % linearunit "( ... | ... | ...)"> listing all of the acceptable strings for linear measurement units in an application, I've just become aware that &...
0
votes
0
answers
83
views
XML file not able to parse element even after giving proper dtd file URL
I am facing following error when starting my application
10:35:17,716 ERROR [org.apache.commons.digester.Digester] (ServerService Thread Pool -- 95) Parse Error at line 55 column 18: Element type &...
0
votes
2
answers
112
views
How to process and update (change attribute, add node, etc) XML file with a DOCTYPE in Python, without removing nor altering the "DOCTYPE"
I have couple of xml files which I would like to process and update their nodes/attributes. I have couple of examples of scripts which can do that, but all of them change a bit the xml structure, ...
1
vote
1
answer
89
views
External DTD not parsing / 'entity not defined error'
I'm not getting the external DTD, a local file in the same folder, to work with a relative or an absolute path. It is not expanding the variable and gives an error in both Firefox and xmlstarlet.
...
1
vote
1
answer
39
views
The markup in the document preceding the root element must be well-formed in .dtd file
I have next files:
<!ELEMENT notes (note+)>
<!ELEMENT note (to, from, heading, body)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT heading (#PCDATA)>
<!...
0
votes
1
answer
50
views
How to pass a variable to a sgml file
Only in a single .sgml file, I have:
<ulink url="https://github.com/postgres/postgres/commit/2af07e2f7"> [2af07e2f7] </ulink>
<ulink url="https://github.com/postgres/...
jian's user avatar
- 5,023
0
votes
0
answers
66
views
C# Validate XML against a DTD in separate file throws security Exception
I'm trying to validate a simple xml file with an external dtd schema with schema and xml being in separate files. Unfortunately so far it only works when the dtd schema is defined in the xml DOCTYPE ...
1
vote
0
answers
39
views
In PHP, xml namespaces are being redeclared when the namespace prefix is changed
In my document type declaration, I have the following:
<!ELEMENT all:Test (div)>
<!ATTLIST all:Test
xmlns:all CDATA #FIXED 'http://www.mrinitialman.com/'
xmlns CDATA #FIXED 'http://...
1
vote
1
answer
118
views
Root element must be declared in the DTD
I have an XML document with the DTD:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE company [
]>
<company>
</company>
And I get the warning:
...