Skip to main content

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".

1 vote
0 answers
22 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://...
MrInitialMan's user avatar
0 votes
0 answers
30 views

How to convert DTD to XSD with Ibatis sqlmap2

I using Java 8 and Struts Framework. I want to convert from DTD to XSD, i.e. remove <!DOCTYPE..., in the sqlMapConfig.xml and sqlMap.xml files. However, there doesn't appear to be an alternative ...
Ngô Hữu Hoàng Nhật's user avatar
1 vote
1 answer
31 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: ...
Leo's user avatar
  • 23
0 votes
0 answers
39 views

libxml2: how to use DTD validation with xmlReader interface when DTD definition is in a memory buffer?

I'm using libxml2's xmlReader interface to process very large XML documents. All XML documents must correspond to a given syntax, which is currently contained in a DTD file, eg: <?xml version='1.0' ...
Karl Ostner's user avatar
0 votes
0 answers
89 views

Outdated XML processor is present on the classpath

Getting below error: Enabling XXE protection failed. The attribute http://javax.xml.XMLConstants/property/accessExternalDTD is not supported by the TransformerFactory. This usually mean an outdated ...
kaveri marathe's user avatar
0 votes
0 answers
14 views

How to autocreate a valid xml structure giving only a dtd DOCTYPE VSCODE

I would like to know if I can make a valid xml structure giving only one dtd DOCTYPE at vscode, for example: <!DOCTYPE productos [ <!ELEMENT produtos (produto+)> <!ELEMENT produto (...
Ramon Salgado's user avatar
0 votes
2 answers
109 views

Is there a way to disregard a referenced dtd when running an xslt?

When I run the following templates using Saxon in Oxygen: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" ...
Zug_Bug's user avatar
  • 210
0 votes
1 answer
21 views

How to get internal subset using SAX parser in XercesC?

I would like to fetch the internal subset (the internal part of the DTD) from an XML file. DOMDocumentType has a getInternalSubset() method, but I'm using a SAX parser, not a DOM one. How could I ...
user23321476's user avatar
1 vote
1 answer
73 views

Is there a DTD for the DTD?

I am writing a DTD and I think it would be nice to know, if it is valid. For that, I need the DTD (description) of the DTD (document type). Does it exist?
peterh's user avatar
  • 1
2 votes
1 answer
24 views

The entity &bar; is not defined

I'm trying to call an external DTD to my xml file and I proceeded like this : <?xml version="1.0" encoding="UTF-8"?> <?xml-model href="https://digi.ub.uni-heidelberg....
Semis's user avatar
  • 21
0 votes
0 answers
146 views

jQuery is not compatible with Quirks Mode - for DTD html 4.0 transitional <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I have below tag in my aspx page <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> When I did jquery migrate , I am getting jQuery is not compatible with Quirks Mode I ...
Anonymous's user avatar
0 votes
2 answers
170 views

Why I can't enable DTDs support in T-SQL?

I'm working with DTD in T-SQL and for the following code: use customers; DECLARE @xmlData XML; SET @xmlData = '<!DOCTYPE replace [<!ENTITY example "Doe"> ]><customer><...
André's user avatar
  • 91
0 votes
1 answer
22 views

Create logic within DTD/XML

Due to my studies I'm learning about XML/DTD's. Now I've got an exercise in which I have to create an order. One point is, that I have 2 different types of customers. One student and one not student. ...
IamSebastn's user avatar
0 votes
1 answer
178 views

mapping relational database schema to document type definition (DTD)

Is it possible to map relational database schema to document type definition (DTD) Then start Populating an XML document. I have been given something like the following: Division(A, B, C, D) and other ...
Mike's user avatar
  • 1
0 votes
0 answers
52 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

15 30 50 per page
1
2 3 4 5
96