Hi, I'm new to xml. I have a cgi application which writes out a html page. Now I need to display the page with xml tag. So my cgi code takes an input, and writes out
At the web siteCode:cout<<"Content-TYPE: text/html\n\n"; cout<<"<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; cout<<"<disease cnt=\"2\">\n"; cout<<"<name>heart disease</name>\n"; cout<<"<name>breast disease</name>\n"; cout<<"</disease>\n";
h..p://......./disease.cgi?term=heart+disease+breast+disease
It only displays "heart disease breast disease" on one line.
If I save the ouput to a file test.xml, it displays
<disease cnt="2">
<name>heart disease</name>
<name>breast disease</name>
</disease>
This is the display I want. How to get this display by calling that cgi program?
Thanks a lot for any help!!!


Reply With Quote
Bookmarks