Re: [gdome]XML_DOCUMENT_TYPE_NODE vs XML_DTD_NODE
- From: Daniel Veillard <Daniel Veillard imag fr>
- To: Paolo Casarini <casarini CS UniBO IT>
- Cc: gdome gnome org
- Subject: Re: [gdome]XML_DOCUMENT_TYPE_NODE vs XML_DTD_NODE
- Date: Mon, 29 Jan 2001 20:28:19 +0100
On Mon, Jan 29, 2001 at 07:54:28PM +0100, Paolo Casarini wrote:
>
>
> 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.
Well that's hostorical, when I designed early versions i defined
XML_DOCUMENT_TYPE_NODE by compatibility with DOM, but DTd stuff wasn't
added to the tree, it was separate, and when DTD stuff got added
I redefined a new node type.
That's all nothing more, nothing less.
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]