jwc - 2007-03-19

Hello All,

The following code snippit works when the
tag contains a value, but if the tag is empty,
the GetText call crashes.  Have I made a
blunder in the use of tinyXML?

I.e.:

.....
<name>smith</name>       (works)
<name></name>            (crashes)

Snippit:

    childPtr = elementPtr->FirstChildElement( "name" );
    if( childPtr == NULL )
        configError( "name element missing or incorrect" );
    else
        portalName = childPtr->GetText();