Questions tagged [dtd]

DTD stands for "Document Type Definition" as specified in the XML 1.x Recommendations of the W3C. DTDs define formal grammars for XML documents: which tags you can use and where you can use them. Validating XML processors apply this grammar to XML documents to determine whether they conform to these grammars, in which case the document is "valid".

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

How to add a Service Reference from wsdl with DTD

In Visual Studio (C#, WinForms) I want to add a Service Reference from a *.wsdl file. The underlaying *.xsd file imports other *.xsd files, one or more containing a <!DOCTYPE... DTD. The 'Add ...
migeold's user avatar
0 votes
1 answer
35 views

xml schema, multiple elements with same name but with different types error

There are a ton of examples of this dilemma online but I still can't quite understand the best way to go about this. I'm trying to create a schema that will: Check for specific element order/...
Paul π's user avatar
  • 170
2 votes
1 answer
40 views

How to read doctype declaration of an xml using xslt?

Is there a way to read the doctype declaration of an xml using xslt? Example XML doctype declaration: <!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD ...
GreatPretender's user avatar
1 vote
1 answer
33 views

Is it possible to re-use `("0" | "1")` via a parameter entity in DTD?

Some companies "throw out" XML with a lengthy wordy description of their tags, but never made any effort to formally describe the structure of such mess. Thus I'm trying to build a DTD from ...
U. Windl's user avatar
  • 3,529
-1 votes
1 answer
22 views

Correct DTD for XML, analyzing Intellij generated DTD

There is an XML containing elements like: <localHeight> <localFeet>5</localFeet> <localInches>10</localInches> </localHeight> When I generated a DTD using ...
pensee's user avatar
  • 405
0 votes
1 answer
37 views

comment the <xref> tag and keep the text as plain, if section/@id is not matched with in folder xml or outside folder xml file

We want to comment the <xref> tags if section/@id is not matched in the same folder xml files or other folder xml files: Each folder have multiple/single xml files and <xref> and section/@...
Kita Ansari's user avatar
0 votes
1 answer
62 views

Update gwt-module.dtd

i use java compiler 1.8 i use installed JREs jdk-17 when compiling maven packages from batch file or in Eclipse with call mvn clean install i get this error [INFO] Compiling module mleWidgeset....
JJ Lazzard's user avatar
0 votes
0 answers
23 views

An error has occurred while opening external DTD - 400 Error

I'm having an issue where a third party dtd is intermittently throwing a HTTP status 400 error when I am trying to validate xml. The error thrown is: An error has occurred while opening external DTD '...
Josh's user avatar
  • 16.3k
1 vote
0 answers
9 views

How can I get WebStorm to lookup entity references in my DTD files

I'm using JetBrains WebStorm 2023.1, to work on a Thunderbird extension. My extension includes some XUL/XHTML files whose content gets overlaid on top of Thunderbird. These files contain may attribute ...
einpoklum's user avatar
  • 119k
0 votes
0 answers
31 views

Passport SAML and XML Parser

I'm trying to implement passport-saml MultiSamlStrategy on an Express.js, and so far everything is working. As far as I know, passport already validates SAML Response signature, issuer, destination ...
Allan Almeida's user avatar
0 votes
1 answer
31 views

How to refresh XML Schema in OxygenXML

I'm developing a new DTD schema in OxygenXML, and using a sample XML document to verify it meets our requirements. When I change the DTD it's understandable that the document can become invalid. But ...
ianmayo's user avatar
  • 2,266
0 votes
1 answer
22 views

JAXB 2 - mapping OR relationship between an ELEMENT and a combination of several unwrapped ELEMENTs

I have a DTD defining an element as such: <!ELEMENT slir ((msids | (msid, codeword?, gsm_net_param, trans_id?)+), eqop?, geo_info?, loc_type?, prio?, ...
WesternGun's user avatar
  • 11.3k
0 votes
1 answer
35 views

How to fix the '1' error in my restaurant.dtd.xml file?

XML error Could you please tell me why this file gives error? restaurant.xml <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/css" href="...
Blissfully Singing's user avatar
0 votes
2 answers
150 views

Up-to-date Documentation on JAXB Bindings for XSD and DTD

I'm trying to generate classes from XSD and DTD files while adding some customizations (have the generated classes implement an interface). I found this thread about XSD bindings, however, it no ...
KC Wong's user avatar
  • 2,410
-1 votes
1 answer
31 views

How do I allow #PCDATA without forcing it and how do I deny #PCDATA?

I would like to get an xml structor like: <root> allow<back>no#PCDATA</back> allow<front>allow#PCDATA</front> </root> I have: <!ELEMENT root (back?,...
Jonah Currie's user avatar
0 votes
0 answers
62 views

Including Primary and foreign keys in DTD

Im working on a task using XML and DTD (which I'm new to) and have been provided the image below: (https://i.stack.imgur.com/rITGv.png) The question I'm working on reads: "Design a proper DTD ...
Zac Callahan's user avatar
0 votes
0 answers
122 views

Eclipse can't find the DTD for my XML file in the same location, only on Desktop

I have to create a DTD referenced by an XML file for class using Eclipse (i'm on Version 2022-09). I put the DTD in the same file location as the XML. The workspace navigator can find it without ...
Nyx's user avatar
  • 1
0 votes
0 answers
59 views

XML Copy Editor gives a syntax error on line 1, column 1 when checks for well form, but validates the XML

I have this XML file that the app "XML Copy Editor" validates perfectly with the dtd corresponding external file: XML: <?xml version="1.0" encoding="UTF-8"?> <!...
Fabman's user avatar
  • 333
0 votes
1 answer
217 views

MyBatisGenerator failed to run with 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized

I'm trying to use MyBatis Generator version 1.4.2 in Eclipse 2020-03 with Java 1.8.0_111. I just created a data base locally and trying to create some mappers from the config.xml: <!DOCTYPE ...
Cristian López González's user avatar
2 votes
1 answer
173 views

XML Unexpected element, content of the parent element must match type

I'm new to XML (and new to stackoverflow) and I'm trying to write an XML file & an accompanying DTD file containing some basic information about geographic subdivisions (states and provinces). The ...
Vanilla's user avatar
  • 41
0 votes
0 answers
41 views

How to solve errors in DTD?

Errors in file DTD.dtd: 1: 49 A ')' is required in the declaration of element type "hobby". I get some errors in DTD validator and I do not know What should I repaire in file? Picture ...
songo324's user avatar
0 votes
1 answer
112 views

Why XML attributes that are ID must start with a letter?

Firstly, I'd like to have a confirm of that, (XML attributes that are ID must start with a letter). Because I tried to put a date (dd/mm/yyyy) as a ID, but it gives me an error if I don't add a letter ...
Matteo Cancian's user avatar
1 vote
0 answers
10 views

What do these symbols mean in XML .DTD? "?" "+" and "|" [duplicate]

I got this exercise for school in which I should write an XML file for this .dtd file but I dont know and cant find the meaning of the marked symbols. Does anyone know the meaning of them? enter image ...
Betalytics's user avatar
0 votes
1 answer
50 views

XML and DTD: The content of the type element must match

Im a Spanish Web Developer student first of all sorry my bad english but I will try my best for explain that problem. We started the markups languagues and we need create an XML document and DTD for ...
Pablo Sánchez Valdés's user avatar
0 votes
0 answers
25 views

Ist die XML und DTD gemäß der Aufgabe umgesetzt?

Ich habe eine Aufgabe bekommen eine XML und eine DTD Datei zu erstellen. Das Validieren klappt auch ohne Fehler jedoch wollte ich nachfragen ob das vom Kontext her Sinn macht? DTD Code: <!ELEMENT ...
Justin Hüsges's user avatar
0 votes
0 answers
13 views

DTD and XML fewest component

<?xml version="1.0" encoding="UTF-8" ?> <!ELEMENT work44 (x1, x2, x3, x4)> <!ELEMENT x1 (a?, b+) > <!ELEMENT x2 (a, (b*, c*)) > <!ELEMENT x3 (a, (b, c)+) ...
Suki Sebastian's user avatar
0 votes
0 answers
16 views

BITS 2.1 version Schema

Could anyone provide the BITS 2.1 XSD and DTD as complete package? I downloaded BITS 2.1 version from JATS server and requesting .ent files which could not get from JATS server. Thanks, C
chandrasekar s's user avatar
0 votes
0 answers
35 views

How can I edit XML code to follow PMC DTD?

I am a journal editing staff member with limited HTML experience. We are attempting to index our journal in PMC and have to convert files to XML format. We have found a generator that produces fairly ...
Reagan F's user avatar
0 votes
0 answers
87 views

How to add internal DTD subset to the newly created xml file using javax.xml

Hello am using the API import javax.xml.parsers.DocumentBuilder; import javax.xml.transform.Transformer; to create a xml I am trying to add the DOCTYPE and DTD declaration as below ...
Vishwa Varanasi's user avatar
0 votes
1 answer
80 views

PHP XML validation using DOMDocument with internally specified schema URI - "No DTD found!"

The xml document quoted in the following code validates using several on-line services: libxml_use_internal_errors(); $xml = '<?xml version="1.0" encoding="utf-8"?> <TEI ...
dkretz's user avatar
  • 37.4k
0 votes
1 answer
65 views

How does PUBLIC external DTD files read? Where are these DTD Files located?

Hibernate config file has this DTD (document type Definition) specified. <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://...
Sourav's user avatar
  • 139
0 votes
1 answer
30 views

Reference another XML file from DTD

Suppose I have an XML file colors.xml <colors> <color id="white" value="#FFFFFF" /> <color id="black" value="#000000" /> <!-- ...
Mark VY's user avatar
  • 1,519
2 votes
1 answer
303 views

how to create Boolean attribute in XML DTD

I've never created a DTD before; I can barely read them in fact. I want to create an attribute that's either true or false. This is the best I have so far: <!ATTLIST myElement someFlag CDATA #...
Mark VY's user avatar
  • 1,519
1 vote
1 answer
61 views

What is the best way to create scalable dynamic xml for external sites to read?

Currently we create huge xml files for several hundreds of users and each of the xml file contains thousands of lines and requires a lot of ram to create/read them. We wanted to create a way of ...
elco45's user avatar
  • 220
0 votes
1 answer
243 views

XML file referencing external DTD

Here's the XML file: <?xml version="1.0"?> <!DOCTYPE data SYSTEM "test.dtd" [ <!ELEMENT data ANY> ]> <data>&send;</data> and here's the ...
rdre8's user avatar
  • 33
1 vote
1 answer
46 views

DTD DOCTYPE declaration close before intended

Hello fisrt time posting. i was doing a dtd to validate an xml and idk why when my code is readed the doctype declaration is closed with the ">" of the fisrt element of the dtd instead of ...
juan rangel's user avatar
9 votes
1 answer
4k views

DTD prohibited on Notepad ++

I am new to XML and I am testing a simple XML with DTD validation on Notepad ++ using the XML tool plugin. However, whenever I tried to validate the file I get DTD is prohibited. Please see below for ...
J L's user avatar
  • 91
0 votes
1 answer
57 views

How to separate idrefs and show their parent element's attribute value?

Let's say I have a XML file declared with a dtd, for example: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE box SYSTEM "box.dtd"> <box> <...
Toulis's user avatar
  • 120
2 votes
1 answer
203 views

Can you use a forward slash "/" in an XML attribute value via DTD?

I have an atribute named item_category and I want to use as enumerated values ( h/w | s/w). Is that possible? And If it is how? Basically i tried: <!ATTLIST item item_category (h/w | s/w) #...
Toulis's user avatar
  • 120
0 votes
0 answers
111 views

How to manage DTD URLs and avoid fetching DTD URL references to be fetched at runtime?

I have software running at different sites for over a decade now. That software uses, among other libraries, Hibernate and Jetty. Both of those have XML configuration files that have a DOCTYPE ...
Gunther Schadow's user avatar
1 vote
1 answer
46 views

Can I use regular expressions in DTD schemas?

I want to enforce that an XML element has to contain an ISBN code. Therefore, I need your typical pattern "[0-9]{3}-[0-9]{3}......". Could that be achieved in a DTD schema? I've read you can'...
Darío Ojeda Jurado's user avatar
0 votes
1 answer
79 views

Is there a way to reference an element from another element in XML DTD?

I'm making a 'students' XML that stores students and its information like name, address, telephone... In this case I have an element 'helped-by' inside 'additional-information' in which I want to &...
DaniC's user avatar
  • 11
0 votes
1 answer
53 views

Xml file cannot read external css or dtd

So Im using notepad++ and i have a really simple xml file for demonstrating the problem. <?xml version="1.0" standalone="no"?> <?xml-stylesheet type="text/css" ...
Toulis's user avatar
  • 120
0 votes
0 answers
79 views

How to nest percent symbol in .xml config

Suppose I am trying to write some lines of code inside a .XML file (within the context of .dtd structures where settings and vars are being parsed and outputted into configuration files.) % If ... % % ...
2Xchampion's user avatar
0 votes
1 answer
2k views

How to Solve DTD is prohibited in this xml document in WCF while connecting with Xamarin forms

I'm trying to connect my WCF service in Xamarine Forms, but in runtime I am getting this error For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ...
sarthkee waghchaure's user avatar
0 votes
1 answer
54 views

How do I prevent duplication of my root xml during my for loop

for $i in doc(test.xml)//hosptial return file:append(filepath\dirTest.xml, <studentID> <hospitalName> <ambo>{$i//ambo}</ambo> </hospitalName&...
Julio's user avatar
  • 3
0 votes
1 answer
33 views

dashes in DTD not validating

I have a DTD supplied by someone else, and it is not validating when I try to use XSLT. Here is an extract: <!ELEMENT vehicle - - (#PCDATA | left | centre | ...
CJ7's user avatar
  • 22.6k
1 vote
1 answer
169 views

XML DTD error AttValue: " or ' expected but validator finds no errors

I get the error: error on line 29 at column 33: AttValue: " or ' expected When I use any browser I recieve this error. However, two validators I use don't find any issues. The line of code it is ...
Tara Speak's user avatar
1 vote
1 answer
79 views

the child element must occur at least two times

Current element declaration: <!ELEMENT personnes (person+) > How can I modify it to require at least 2 person child elements (or more)? Invalid: <personnes> <person></person> &...
roudlek's user avatar
  • 180
0 votes
0 answers
27 views

What means this dtd, should I need to create a element or not? (Jdom, Java)

<!ELEMENT Studiengang (Name,Fachgruppe,Studienbereich)> <!ELEMENT Fachgruppe (#PCDATA)> <!ELEMENT Studienbereich (#PCDATA)> Hi , i have this dtd and i wanted to translate that to ...
user avatar

1
2 3 4 5
29