Skip to content

Tag Archives: doctype

DTDS When creating a DTD with my xml I keep getting an error. Are both files suppose to be kept in the same?

folder? If they are, then I am doing that. This is what I am getting: The system cannot locate the resource specified. Error processing resource ‘lab02.dtd’. Error processing resource ‘file://… <!DOCTYPE gradedEvents SYSTEM "lab02.dtd">

Why do I get the following message when I try to validate my XML file using online validator?

I have used the W3C online validator and it tell me that the XML file is Well formed, however the error it give at the bottom of the page is: No DOCTYPE found! Checking XML syntax only. Why do I get this error and how can I overcome this problem Thanks

How do I read data in a XML file in Java?

I need to read an XML file in java. The XML file has a reference to an xsd in it’s <!DOCTYPE..> element. Something like noNameSpace = "D:\Xsd.xsd" I need to read this reference using Java. How do I do it? SAXParser is the parser im using…