Hi,
the following code works fine for me with the most recent code
base:
static const XMLCh gLS[] = { chLatin_L, chLatin_S, chNull };
DOMImplementation *impl =
DOMImplementationRegistry::getDOMImplementation(gLS);
DOMBuilder *builder =
((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS,
0);
DOMDocument *newDoc = builder->parseURI("test2.xml");
newDoc->getChildNodes();
XercesDOMParser *parser = new XercesDOMParser;
parser->parse("test2.xml");
newDoc = parser->getDocument();
newDoc->getChildNodes();
post your code and well take a look.
Gareth
On Wed, 22 Jan 2003, Shane, Rick wrote:
> In Solaris, when I call the getChildNodes method on a DOMDocument object
> that I get back from a DOMBuilder->parseURI call I get an error saying that
> I am trying to call a pure virtual function.
>
> > But if I make this same call on a DOMDocument object that I get back from
> > a call to XercesDOMParser->getDocument it works.
> >
> > Is there a difference in the type of DOMDocument object pointers returned
> > from these two parsers?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]