This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Is there a way to create a validating SAX parser for a document that doesn't have a DOCTYPE in it? I'm using Xerces, so any non-standard way of doing this may work for me, too. Thanks. [ April 27, 2005: Message edited by: Nathaniel Stoddard ]
In the little time I could muster, I read about this (in XML Bible & the Spec.) and I am not very convinced that you could do this.
Part of the DOCTYPE declaration is that you declare the root element. You don't have to declare the DTD. That you can just provide a URL and get away with. As far as the root element, if all of your XML files have the same root element, then maybe this is possible. I have some doubts that this is the case you are trying to solve.
My wish: I wish I had the time to just write up some sample XML files and try a few things, but well I am struggling to juggle things between work, life and the other.
Sorry if it sounds like I am venting, I wish I had a more concrete answer.