- 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user