if ( fieldvalue[depth] == NULLSTRING )
return returnfalse( this , "depth4-4" , qName ) ;
if ( !strcmp( fieldvalue[depth].c_str() , "?" ) ) {
-// aLink.aLinkValue.Value = fieldvalue[depth].c_str() ;
- aLink.aLinkValue = CORBA::Any() ; // ???
+ aLink.aLinkValue <<= "" ;
}
else {
switch ( aLink.aLinkValue.type()->kind() ) {
aLink.aLinkValue >>= retstr;
QDomElement value = Graph.createElement( "value" ) ;
//PAL9133 Debug JR : accept void strings
- QDomCDATASection aCDATA = Graph.createCDATASection( retstr ) ;
+ QDomCDATASection aCDATA ;
+ int i ;
+ for ( i = 0 ; i < (int ) strlen( retstr ) ; i++ ) {
+ if ( retstr[ i ] != ' ' ) {
+ break ;
+ }
+ }
+ if ( i == (int ) strlen( retstr ) ) {
+ aCDATA = Graph.createCDATASection( "?" ) ;
+ }
+ else {
+ aCDATA = Graph.createCDATASection( retstr ) ;
+ }
// aField = Graph.createTextNode( retstr ) ;
- aField = Graph.createCDATASection( retstr ) ;
- datavalue.appendChild( aCDATA ) ;
-// datavalue.appendChild( value ) ;
- value.appendChild( aField ) ;
+ datavalue.appendChild( value ) ;
+ value.appendChild( aCDATA ) ;
// MESSAGE( "ToString( string ) " << retstr );
break ;
}