[xsd-users] Casting xsd:string to const char*
#MOK BAO REN CLARENCE#
MOKB0001 at e.ntu.edu.sg
Mon Sep 20 09:32:11 EDT 2010
Hi guys,
Im a newbie to C++ and XSD. Here goes my problem. This is what I am trying to do:
char * featureDataName;
featureDataName = new char[4000];
strcpy(featureDataName, reinterpret_cast<const char*>( i->filename ()).c_str );
i->filename () returns a xsd:string and I am trying to store it into a char * string for further processing in my C++ application.
This is the error I received:
driver.cpp:44: error: invalid cast from type 'const xsd::cxx::tree::string<char, xsd::cxx::tree::simple_type<xsd::cxx::tree::_type> >' to type 'const char*'
Would love any kind help
Regards,
Clarence
More information about the xsd-users
mailing list