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.
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.