OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   XML DTD questions

[ Lists Home | Date Index | Thread Index ]

Hi, 

I wrote a java class which is using DOM to process data in a XML file  
into  database.  The java class workes well without DTD added to the XML. 
But I  got errors when I add this line-
<!DOCTYPE omf SYSTEM "OMF.dtd">

The errors are as follows. These are result from invalid dtd file or 
somthing else?

Could anyone help me out? Thanks a lot!

Meichun

*************************
org.xml.sax.SAXParseException: White space is required between the version 
and the encoding declaration.
        at 
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
        at 
org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScanner.java:651)
        at 
org.apache.xerces.framework.XMLDTDScanner.abortMarkup(XMLDTDScanner.java:705)
        at 
org.apache.xerces.framework.XMLDTDScanner.scanTextDecl(XMLDTDScanner.java:1685)
        at 
org.apache.xerces.framework.XMLDTDScanner.scanDecls(XMLDTDScanner.java:1465)
        at 
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2147)
        at 
org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.java:2100)
        at 
org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:831)
        at 
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
        at 
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
        at 
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1139)
        at ReadInDatabase.main(ReadInDatabase.java:45)





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS