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

DTD stands for "Document Type Declaration" as specified in the XML 1.x Recommendations of the W3C (see http://www.w3.org/TR/xml/).

The XML document type declaration contains or points to markup declarations that provide a grammar for a class of documents. This grammar is known as a document type definition, or DTD. The document type declaration can point to an external subset (a special kind of external entity) containing markup declarations, or can contain the markup declarations directly in an internal subset, or can do both. The DTD for a document consists of both subsets taken together.

DTDs were also specified in SGML (ISO 8879:1986), the forbear to XML. SGML DTDs are more feature-rich than XML DTDs, allowing for example the specification of tag minimization features.

References:

1433 questions
-1
votes
3 answers

XmlReader DTD Validation Error on an Attribute

I am trying to use XmlReader to parse a file and set each element's attributes to variables using reader.GetAttribute("atrribute_name"), but the elements may or may not actually have that attribute present, so some elements give me an error...I…
Stephen Belanger
  • 6,251
  • 11
  • 45
  • 49
-1
votes
1 answer

Validate xml against dtd from string

I have an xml file that refers to a local dtd file. But the problem is that my files are being compressed into a single file (I am using Unity3D and it puts all my textfiles into one binary). This question is not Unity3D specific, it is useful for…
Marnix
  • 6,384
  • 4
  • 43
  • 78
-1
votes
1 answer

ignore the joomla tag or consider them as valid tag in netbeans

While developing joomla projects in netbeans , it consider the joomla tag like: as invalid tag, is there any method to modify the html dtd or ignore some of tags in netbeans?
amd
  • 20,637
  • 6
  • 49
  • 67
-2
votes
4 answers

Most common cause of "java.lang.NullPointerException" when dealing with XMLs?

My strongest lead is that the code who deals with the incoming XMLs is actually receiving an invalid/incomplete file hence failing the DOM parsing. Any suggestions?
Nano Taboada
  • 4,148
  • 11
  • 61
  • 89
-2
votes
1 answer

why do i have this error element type "message" must not be declared more than once

I have this dtd file
user14349884
-2
votes
1 answer

XML, DTD file missing information

I need some help, making sure I understand this and doing it right. The element rit 1.1. The element rit has an attribute version that must have the value 1.0 1.2. The element rit has a required attribute date that has a text representing the date…
Micheal
  • 23
  • 4
-2
votes
1 answer

The markup in the document following the root element must be well-formed. - How to add more root Elements?

I'm trying to add second Element in root called posiadajacy_samochod. I don't know how I'm supposed to do it. I need to declare two namespaces. Is this something about closing the brackets? I need solution.
-2
votes
1 answer

XSD equivalent code to this DTD code?

Assume that my DTD code have this following listing: Can I write XSD code, which defines that a sequence of three element (one optional) can be repeated one or more? If it can, what's the…
-2
votes
1 answer

How can I convert HTML to XML (which conforms with XML schema or DTD)

I'm trying to convert some HTML files to XML format on ubuntu and they should conform to a specific XML schema or DTD. I guess Tidy should do that but I don't understand the syntax for it. Or if there are other tools, I'd be glad to try them out.…
TheSoldier
  • 484
  • 1
  • 5
  • 25
-2
votes
3 answers

generate DTD for a given code

the given code is: John Nelson Extensible Markup Language
Arjun Gupta
  • 1
  • 1
  • 3
-2
votes
1 answer

DTD to XML Schema

I have this DTD:
pabaras
  • 51
  • 4
-2
votes
1 answer

XSD - xs:all rewritten as deterministic dtd

Following xsd part is given:
uL1
  • 2,117
  • 2
  • 17
  • 28
-2
votes
1 answer

NMTOKEN questions. Am I overthinking it?

I have another quick question regarding my XML assignment. 1) The assignment states that I need to add a NMTOKEN to my code. Do I simply input the code as ? Or should I actually put a name for it? There was…
Carlos Q
  • 11
  • 5
-2
votes
2 answers

how to add to the starting of an xml file using python2.5?

I have an xml file as follows: xyz I want to add to the starting of xml: I have to use python 2.5 only. So, can anybody please suggest how can i…
Learner
  • 453
  • 13
  • 29
-2
votes
2 answers

Well-formed vs validated documents

I have a short question. Why XML files should be validated and not just well-formed? I looked at several places for an answer to this question but I have not found a good one.
Rapidistul
  • 406
  • 4
  • 9
  • 19
1 2 3
95
96