|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XML DTD questions
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)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||







