[
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)
|