Mark Johnson wrote:
> Does anyone know if it's possible to define which DTD the DOM should use,
> so that it's output with the saveHTML() or saveXML() methods?
I don't know for certain, but I'd guess... yes? You know, it occurs to me that
maybe someone should write, like, documentation for this API stuff. Perhaps they
could put it on the web! Obviously blind guesswork, like most programmers use,
is quite frustrating, but taking time out to ask the HantsLUG mailing list has
disadvantages too! It's so slow! And some people write such condescending replies!
You know, I'm going to patent this "online documentation" idea. It'll make me a
fortune. I should just do a quick search to check there's no prior art.
* 4 seconds of intensive Googling later *
Nah, somebody's already come up with (or stolen) my idea. These bastards, for
example:
http://php.net/dom#dom.class.domdocumenttype
Pants.
Dan