Re: help me get rid of some compile errors...

2003-03-25 Thread David J Craigon
The following code snippet should work: #include using namespace xercesc; int foo() { DOMNode *anode; if (anode->getNodeType()==DOMNode::ELEMENT_NODE) { DOMElement *elem= (DOMElement *)anode; } else { // Oh dear } } This tatic has worked for me in the past

Re: help me get rid of some compile errors...

2003-03-25 Thread David J Craigon
The following code snippet should work: #include using namespace xercesc; int foo() { DOMNode *anode; if (anode->getNodeType()==DOMNode::ELEMENT_NODE) { DOMElement *elem= (DOMElement *)anode; } else { // Oh dear } } This tatic has worked for me in the past

RE: help me get rid of some compile errors...

2003-03-25 Thread vinayak
non xerces) headers and I would probably have to eat my hat -Vinayak > -Original Message- > From: David N Bertoni/Cambridge/IBM > [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 25, 2003 12:10 PM > To: [EMAIL PROTECTED] > Subject: Re: help me ge

Re: help me get rid of some compile errors...

2003-03-25 Thread David N Bertoni/Cambridge/IBM
> I am wasting way too much time integrating my app with the > xerces parser. To add to my woes, I am facing compiler different > compiler errors for different projects that use the same xerces > code... :-) Can someone help me fix these errors the easy way ? Was it really necessary to include

help me get rid of some compile errors...

2003-03-25 Thread vinayak
I am wasting way too much time integrating my app with the xerces parser. To add to my woes, I am facing compiler different compiler errors for different projects that use the same xerces code... :-) Can someone help me fix these errors the easy way ? I am trying.. DOMNode *n // it is a valid d