#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    43
    Rep Power
    12

    Delphi, HTML and XML


    Hi,
    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.
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    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
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2004
    Posts
    12
    Rep Power
    0

    XML solution


    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;

    begin
    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
    XMLDocument2.SaveToXML(output);
    response.ContentType := 'text/html';
    response.Content := FormatXMLData(output);

    end;

IMN logo majestic logo threadwatch logo seochat tools logo