Mike Oliver wrote:
I'm sure this question has a really trivial answer, but
I just can't seem to find it anywhere in the Apache docs.
I have a Xerces-based reader for an XML file format that
currently uses a DTD, and it works.  But when I try
to use an XSD instead, I get
 Fatal Error at file /foo/foo.xsd, line 2, char 3
  Message: Expected a markup declaration

Here are the first two lines of foo.xsd:
  <?xml version="1.0" encoding="UTF-8"?>
  <xs:schema

Never mind.  The problem wasn't in the XSD, but
in the XML that was using it.  I didn't realize
you don't use a DOCTYPE element when using an
XSD grammar.


Reply via email to