Generating XML file output?
-
Hi i have one doubt regarding how to generate XML file output for example;
main()
{
int Array_sample[];
for(int i=0;i<=10;i++)
{
Array_sample[i]=i;
std::cout<<Array_sample[i]<<std::endl;
//This is generating output but i want to write this output only print in
// XML file how do that???
}
return 0;
}Thanks and Regards Nisha
-
Hi i have one doubt regarding how to generate XML file output for example;
main()
{
int Array_sample[];
for(int i=0;i<=10;i++)
{
Array_sample[i]=i;
std::cout<<Array_sample[i]<<std::endl;
//This is generating output but i want to write this output only print in
// XML file how do that???
}
return 0;
}Thanks and Regards Nisha
-
#include #include using namespace std; int main() { int Array_sample[10]; fstream myOutput; myOutput.open("test.xml", fstream::out); myOutput<<""<"<"<"<"<
you are simply writing in console print XML senerio ...i want to generate one external XML file
-
you are simply writing in console print XML senerio ...i want to generate one external XML file
No .. he is actually writing to a "test.xml" file.. not stdout
myOutput.open("test.xml", fstream::out);
regards
Fratelli
-
you are simply writing in console print XML senerio ...i want to generate one external XML file