> Hi!
> 
> I'm trying to parse the value of a Node by using this piece
> of code:
> 
> char *value;
> value = attr.getNodeValue().transcode();
> switch (value) {   
> case "John":         
> printf("Your name is John\n");      
> break;                 
> case "Tom": 
> printf("Hello, Tom!\n");      
> break;                 
> }
> 
> But I get this error:
> <<error C2450: switch expression of type 'char *' is illegal
>         Integral expression required >>
> 
> Anybody could suggest an alternative to get the 'value'? 


char *value;
value = attr.getNodeValue().transcode();
printf("Your name is %s\n", value);      

:)


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

Reply via email to