Hello,
I am using Xerces C++ 3.1.1 and writing following program.
But compiler says can't open <xercesc/dom/DOMBuilder.hpp>.
I can't find DOMBuilder.hpp in the Xerces C++ package.
Is DOMBuilder obsolete? Is there any other way? Please help me.
Thank you for your help.
#include <iostream>
#include <xercesc/dom/DOMBuilder.hpp>
#include <xercesc/dom/DOMDocument.hpp>
#include <xercesc/dom/DOMImplementation.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
#include <xercesc/dom/DOMImplementationRegistry.hpp>
#include <xercesc/parsers/AbstractDOMParser.hpp>
#include <xercesc/util/PlatformUtils.hpp>
try
{
XMLPlatformUtils::Initialize();
}
catch(...)
{
std::cerr << "Error";
}
const XMLCh gLS[] = { chLatin_L, chLatin_S, chNull };
DOMImplementation* impl
= DOMImplementationRegistry::getDOMImplementation(gLS);
DOMBuilder* parser
= ((DOMImplementationLS*)impl)->createDOMBuilder(
DOMImplementationLS::MODE_SYNCHRONOUS, 0);
... snip ...
----------------------------------------------------------------------
Mail: [email protected]
Home Page: http://www.din.or.jp/~shimaden/
Hiroyuki Shimada
----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]