Will, You can remove the xml decl or force adding the encoding info:
<?xml version="1.0" encoding="UTF-8" ?> Tom Wang Panscopic Corporation Web Reporting, Just Add Data http://www.panscopic.com/ > -----Original Message----- > From: Will Hartung [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 22, 2002 6:13 PM > To: [EMAIL PROTECTED] > Subject: Problem: White space is required between the version and the > encoding declaration. > > > > I'm getting this error while I'm trying to parse a simple XML document. > > SAXParseException: White space is required between the version and the > encoding declaration. > > The error appears to be in the DTD that it doesn't like the <?xml > version="1.0"?> line, and I don't understand what the issue is. Can anyone > provide any hints? I get this error on both 1.4.3 and 1.4.4. > > XML I'm trying to parse: > <?xml version="1.0"?> > > <!DOCTYPE Basic SYSTEM "file:basic.dtd"> > > <Basic> > <anInt>1</anInt> > <aDouble>2.4</aDouble> > <aString>This is a string</aString> > <anotherString>ANother string</anotherString> > </Basic> > > The DTD (in basic.dtd): > <?xml version="1.0"?> > <!ELEMENT Basic (anInt?, aDouble?, aString?, anotherString?)> > > <!ELEMENT anInt (#PCDATA)> > <!ELEMENT aDouble (#PCDATA)> > <!ELEMENT aString (#PCDATA)> > <!ELEMENT anotherString (#PCDATA)> > > Thanx! > > Best Regards, > > Will Hartung > ([EMAIL PROTECTED]) > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
