int _tmain(int argc, _TCHAR* argv[]) { char *xmldata = "<?xml version=1.0 encoding=UTF-8?><DataCaptureSesstings><ModuleSettings><account_id>1</account_id><capture_local_dir>c:\</capture_local_dir><capture_log_dir>c:\log</capture_log_dir><capture_log_level>debug</capture_log_level><capture_request_interval>2</capture_request_interval><capture_connection_interval>2</capture_connection_interval><smtp_server_name>n1</smtp_server_name><smtp_server_port>80</smtp_server_port><smtp_email_sender>s1</smtp_email_sender><smtp_email_sender_password>p1</smtp_email_sender_password></ModuleSettings><MachineList><Machine><MachineId>0022</MachineId><Make>Make1</Make><Model>Model1</Model><SerialNumber>SN1</SerialNumber><IpAddress>10.10.10.10</IpAddress><Port>80</Port></Machine><Machine><MachineId>3000</MachineId><Make>Make3</Make><Model>Model3</Model><SerialNumber>SN3</SerialNumber><IpAddress>30.30.30.30</IpAddress><Port>80</Port></Machine></MachineList></DataCaptureSesstings>"; std::ofstream outfile ("sampleP2.xml"); outfile << xmldata; outfile.close(); }
A string literal was expected, but no opening quote character was found. Error processing resource 'file:///C:/Documents an... <?xml version=1.0 encoding=UTF-8?><DataCaptureSesstings><ModuleSettings><account_id>1</account_id...
char *xmldata = "<?xml version=\"1.0\" encoding=\"utf-8\"?>...";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)