December 11th, 2003, 11:15 PM
Delphi, HTML and XML
Recently i have started using Delphi. i have created a GUI using Delphi and will now be embedding it into a HTML page. Now, this HTML page is to be transformed into a XML file. This XML file represents the selections done by the user on the GUI.
can any u sugest me how to proceed in the transformation of Delphi/HTML into XML?
thanks in advance.
December 12th, 2003, 04:08 PM
Not sure what you mean... do you want the delphi program to write out an XML file?
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
Use the XMLDocument propery write out a XML page.
You'll have to build up the tree structure yourself.
e.g to load from exisitng XML document
var input, output :wideString;
XMLDocument1.LoadFromXML('<? xml version="1.0"?> '+#numberofnodes+'<classheader>'+numberofnodes+'</classheader>');
//processing goes here
//read from website using SOAP, WSDL or UDDL
//then format document for output
response.ContentType := 'text/html';
response.Content := FormatXMLData(output);