- Add expat to the windows build only...

- Changed nsXMLDocument such that expat gets used for XML parsing if
  EXPAT is #define'd
This commit is contained in:
nisheeth@netscape.com
1999-02-27 08:02:15 +00:00
parent 3d2eb36596
commit 64a2fee91c
4 changed files with 14 additions and 2 deletions
@@ -38,6 +38,7 @@
#include "nsIDOMComment.h"
#include "nsIDOMElement.h"
#include "nsIDOMText.h"
#include "nsExpatDTD.h"
// XXX The XML world depends on the html atoms
#include "nsHTMLAtoms.h"
@@ -299,7 +300,11 @@ 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
mParser->RegisterDTD(theDTD);
mParser->SetCommand(aCommand);
mParser->SetContentSink(sink);