We've decided to do away with the notion of an nsExpatDTD. The expat tokenizer which encapsulates the expat parser will be driven by nsWellFormedDTD. So, I'm removing the code that constructed an expat DTD for controlling the parsing of an XML document.

This commit is contained in:
nisheeth%netscape.com 1999-03-03 01:57:03 +00:00
Родитель 6497120c24
Коммит e870ce9054
2 изменённых файлов: 2 добавлений и 10 удалений

Просмотреть файл

@ -38,7 +38,6 @@
#include "nsIDOMComment.h"
#include "nsIDOMElement.h"
#include "nsIDOMText.h"
#include "nsExpatDTD.h"
// XXX The XML world depends on the html atoms
#include "nsHTMLAtoms.h"
@ -300,11 +299,8 @@ nsXMLDocument::StartDocumentLoad(nsIURL *aUrl,
nsIDTD* theDTD=0;
// XXX For now, we'll use the HTML DTD
#ifndef EXPAT
NS_NewWellFormed_DTD(&theDTD);
#else
NS_New_Expat_DTD(&theDTD);
#endif
/* Commenting out the call to RegisterDTD() as per rickg's instructions.
XML and HTML DTD's are going to be pre-registered withing nsParser. */
// mParser->RegisterDTD(theDTD);

Просмотреть файл

@ -38,7 +38,6 @@
#include "nsIDOMComment.h"
#include "nsIDOMElement.h"
#include "nsIDOMText.h"
#include "nsExpatDTD.h"
// XXX The XML world depends on the html atoms
#include "nsHTMLAtoms.h"
@ -300,11 +299,8 @@ nsXMLDocument::StartDocumentLoad(nsIURL *aUrl,
nsIDTD* theDTD=0;
// XXX For now, we'll use the HTML DTD
#ifndef EXPAT
NS_NewWellFormed_DTD(&theDTD);
#else
NS_New_Expat_DTD(&theDTD);
#endif
/* Commenting out the call to RegisterDTD() as per rickg's instructions.
XML and HTML DTD's are going to be pre-registered withing nsParser. */
// mParser->RegisterDTD(theDTD);