Questions tagged [dtd-parsing]
51 questions
1
vote
2 answers
Xhtml Invalid Characters?
I have made custom xhtml valdidator in .NET(validating through dtd + some extra rules) and I have noticed a discrepancy between my validation and w3c validation.
In my validator I get the following error when there is colon in the id (let's say :…

Pierluc SS
- 3,138
- 7
- 31
- 44
1
vote
0 answers
How to parse DTD node structure with MSXML6
There are some stand-alone DTD files that I would like to parse in my Delphi application with MSXML6. The DTD file content looks similar to:

blerontin
- 2,892
- 5
- 34
- 60
1
vote
2 answers
Character entities in XHTML 1.0 metadata?
For my title, keywords and description fields on a page with an XHTML 1.0 Doctype what is the correct usage for non-ascii characters like – é etcetera? Do crawlers and social media sites read them better as:
My webpage — a study in…

novwhisky
- 446
- 3
- 14
1
vote
1 answer
DTD validation in a 3.5 assembly fails when linked in an application targeting 4.6
I have an assembly written in c# that does DTD validation on an input string. It uses XMLReaderSettings.ValidationTpe = ValidationType.DTD and XMLReaderSettings.ProhibitDtd = false.
XML validation works fine when linking this assembly in…

Richard
- 116
- 2
- 7
1
vote
0 answers
Does PHP's "schemaValidate" function supportDTD parameter entities?
I have an XSD (for HTML 4.01, from the usual public source) which includes parameter-entity declarations such as the following:
... but when I reference this DTD using PHP-7's DOMDocument::schemaValidate…

Mike Robinson
- 8,490
- 5
- 28
- 41
1
vote
1 answer
Java: How to use a DTD inside an XML document when processing it with Java?
I have an xml file which I am trying to process with Java. It turned out I needed a DTD for my XML document because I had non-xml standard entities in my xml document.
So my question is how do I process an xml file with Java while making it aware…

anonymous
- 2,294
- 5
- 23
- 27
1
vote
1 answer
XML and DTD: The content of element type must match
I'm learning XML at the moment and I'm struggling with the first DTD extension.
My DTD :

MohaMed
- 81
- 1
- 2
- 10
1
vote
1 answer
1
vote
1 answer
How to specify a version for XML DTD?
I want to specify a version (like 1.0 or 2.0) for my DTD (defined inline). My intention is to make the parser program reject the XML document gracefully if the version is different from what it is looking for.

gunner4evr
- 79
- 7
1
vote
1 answer
wutka dtdparser library -- can I retrieve elements in the order defined?
I am modifying some old code that parses a DTD using the Wutka DTDParser (http://mvnrepository.com/artifact/com.wutka/dtdparser/1.21). I need to be able to retrieve the elements in the order they appeared in the DTD file. But the DTDParser stores…

PurpleVermont
- 1,179
- 4
- 18
- 46
1
vote
1 answer
how to reference the path to a DTD value in XML
I am a newbie when it comes to XML and DTD values, so forgive me if this is a simple question or if I am going about this in the wrong way. Can you specify a DTD value in the same way you can specify a path to a property in XML?
For instance, if…

user972276
- 2,973
- 9
- 33
- 46
1
vote
1 answer
Creating DTD (Document Type Definition) file using atrributes, fixed, required, implied etc
We only talk about DTD and XML in class for 2 days and i have this assignment not sure if im doing it right or did everything that has been asked. Atleast i try, any help will be appreciated!!
Assignment
You have been asked to represent airport data…

sean
- 77
- 1
- 1
- 6
1
vote
1 answer
Parsing dtd file with lxml library (python)
I need your help.
I use lxml library to parsing dtd file.
How can i get c subexpression in this example?
dtd = etree.DTD(StringIO(''))
I try this
content = dtd.elements()[0].content
left, right = content.left,…

user2800220
- 13
- 3
1
vote
1 answer
How does one copy document specific DTD during XSL transformation?
I have the following document specific DTD at the top of an XML file created by our editing software:

HorusKol
- 8,375
- 10
- 51
- 92
1
vote
0 answers
I can not convert XML that has a defined DTD to Document type in JAVA
Possible Duplicate:
Make DocumentBuilder.parse ignore DTD references
Here is my sample XML
…

user1774507
- 11
- 2