I say yes. / Erik
-----Original Message----- From: Gareth Reakes [mailto:[EMAIL PROTECTED]] Sent: den 23 september 2002 19:11 To: [EMAIL PROTECTED] Subject: RE: Attribute default values in DTD is not available in the DOMDocument. OK, well this is the code thats the problem (in DOMDocumentImpl::importNode): if (smap != 0) { for(XMLSize_t i = 0; i < smap->getLength(); i++) { tmap->setNamedItem(importNode(smap->item(i), true, false)); } } // NOTE: At this time, the DOM definition of DocumentType // doesn't cover Elements and their Attributes. domimpl's // extentions in that area will not be preserved, even if // copying from domimpl to domimpl. We could special-case // that here. Arguably we should. Consider. ????? newnode = newdoctype; It seems that this has not yet been discussed. What do people think? When you clone a document should you have access the the element info from the DTD? I would say yes. I will provide a patch if it is agreed that this should be the behaviour. Gareth --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
