Re: [gdome]XML_DOCUMENT_TYPE_NODE vs XML_DTD_NODE



On Mon, 29 Jan 2001, Daniel Veillard wrote:

> On Mon, Jan 29, 2001 at 05:01:54PM +0100, Paolo Casarini wrote:
> > Why libxml set XML_DTD_NODE type to a DOCTYPE node?
> > I think DOCTYPE node should be XML_DOCUMENT_TYPE_NODE.
> 
>   No it uses XML_DTD_NODE, get a fresh version of libxml2 from
> CVS and look at the warning in tree.h

Ok, I'm wrong, I'll use XML_DTD_NODE for DOCTYPE node, but could
you explain me why? DOM1 and DOM2 specs say that the type should be
XML_DOCUMENT_TYPE_NODE. So what's the reason of this choice?
I'm trying to implement the DocumentType Interface and it's important to
understand this choice.

Thanx
Paolo
--
Paolo Casarini





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]