As you are seeing, the DOM parser does not create a doctype node for the documents it creates. We are working on implementing this now, so it should be available in the not-to-distant future.
-- Andy ----- Original Message ----- From: "Steve Dickson" <[EMAIL PROTECTED]> writes > If I create a document programmatically and add a > DOM_DocumentType to it, DOM_Document::getDoctype() returns the appropriate > DOM_DocumentType object. However, DOM_Document::getDoctype() _always_ > returns null for a document created by a parser. [ snip] > Is > this the expected behaviour? If so, how can I access DocumentType?