C++builder XML XSL code generation

Source: Internet
Author: User
Tags xml xsl xsl

void__fastcall Tfrmgencode::xsltxml1click (TObject *Sender) {    //XSLT transformation XML file format_di_ixmldocument XML; _di_ixmldocument XSL; //xml::xmlintf::ixmldocument_di_ixmldocument Outdoc; //xml::xmlintf::ixmldocument *outdoc = Newxmldocument ();String F1, F2, F3;    Widestring Rtext;    UnicodeString USTR; F1="E:\\cjj\\callfunlog\\tableclass.xml"; F2="e:\\cjj\\callfunlog\\tableclass.xsl"; F3="c:\\kcode.html"; XML= Interface_cast<xmlintf::ixmldocument> (Newtxmldocument (NULL)); XSL= Interface_cast<xmlintf::ixmldocument> (Newtxmldocument (NULL)); Outdoc= Interface_cast<xmlintf::ixmldocument> (Newtxmldocument (NULL)); XML->loadfromfile (F1);//LoadXMLData (F1);Xsl->LoadFromFile (F2); XML->node->transformnode (xsl->documentelement, Rtext); //Err Documentelement->transformnode//Xml->documentelement->transformnode (xsl->documentelement, rtext);USTR =Rtext; SynMemo1->text =USTR; Outdoc-LoadFromXML (USTR); Outdoc-SaveToFile (F3); WebBrowser1-Navigate (F3); Deletefilew (F3);}

Write the XML data and XSL format OK!

C++builder XML XSL code generation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.