Try using strcmp

Chris

-----Original Message-----
From: CAD BILBAO [mailto:[EMAIL PROTECTED]]
Sent: 10 April 2001 09:20
To: [EMAIL PROTECTED]
Subject: transcode()


Hi!

Using Apache XML Xerces for C++, with Visual C++ 6.0 on NT.

I am trying to parse a XML doc. I want to display the
value of a node and execute an action if this value is 
"James T.". I succeed in displaying the value ("James T."),
but not in executing the action:

------//------
DOMString value = newNode.getNodeValue();

char *valueT = value.transcode();                       
cout << "VALUE = " << valueT  << "\n"; 
if (valueT=="James T.") {
    cout << "EXECUTING..." << "\n";     
    execute_the_action();
}
------//----

What must I do to compare a 'transcode value' (valueT) with
a string ("James T.")?

Thanx.
___________________________________________________________________________
Tu correo gratuito en HispaVista - http://www.hispavista.com/altacorreo/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


___________________________________________________
CAZENOVE & CO.

DISCLAIMER, PLEASE NOTE:

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.
___________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to