dbertoni 2002/11/16 16:49:46
Modified: c/samples/ParsedSourceWrappers ParsedSourceWrappers.cpp
Log:
Use new Xerces DOM implementation when available.
Revision Changes Path
1.6 +7 -5
xml-xalan/c/samples/ParsedSourceWrappers/ParsedSourceWrappers.cpp
Index: ParsedSourceWrappers.cpp
===================================================================
RCS file:
/home/cvs/xml-xalan/c/samples/ParsedSourceWrappers/ParsedSourceWrappers.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ParsedSourceWrappers.cpp 14 Nov 2002 23:54:15 -0000 1.5
+++ ParsedSourceWrappers.cpp 17 Nov 2002 00:49:46 -0000 1.6
@@ -70,7 +70,7 @@
#include <xercesc/framework/URLInputSource.hpp>
#if XERCES_VERSION_MAJOR >= 2
-#include <xercesc/dom/deprecated/DOMParser.hpp>
+#include <xercesc/parsers/XercesDOMParser.hpp>
#else
#include <xercesc/parsers/DOMParser.hpp>
#endif
@@ -107,16 +107,18 @@
{
const URLInputSource theInputSource(theURI.c_str());
- DOMParser theParser;
+ XercesParserLiaison::DOMParserType theParser;
theParser.parse(theInputSource);
- DOM_Document theDocument = theParser.getDocument();
-
XercesParserLiaison theParserLiaison;
XercesDOMSupport theDOMSupport;
- XercesDOMWrapperParsedSource theWrapper(theDocument,
theParserLiaison, theDOMSupport, theURI);
+ const XercesDOMWrapperParsedSource theWrapper(
+ theParser.getDocument(),
+ theParserLiaison,
+ theDOMSupport,
+ theURI);
return theTransformer.transform(
theWrapper,
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]