[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Create XML


create xml delphi
You should use an XML API to create/manipulate XML documents instead of 
raw string manipulation. Search for tutorials on google... for example 
take a look at

http://homepages.borland.com/ccalvert/TechPapers/Delphi/XMLSimple/XMLSimple.html

MAnos

Mehmet AVSAR wrote:
> Hi Friends,
>  
> I must create a XML file in Delphi. But i don't know XML. I have a XML 
> file format.
>  
> <?xml version="1.0" standalone="yes"?>
> <DATAPACKET Version="2.0">
> <METADATA>
> <FIELDS>
> <FIELD attrname="ADI_SOYADI" fieldtype="string" WIDTH="35"/>
> <FIELD attrname="FIRMA_UNVANI" fieldtype="string" WIDTH="35"/>
> <FIELD attrname="TELEFON" fieldtype="string" WIDTH="15"/>
> <FIELD attrname="E_POSTA" fieldtype="string" WIDTH="50"/>
> <FIELD attrname="IDO_REF_NO" fieldtype="string" WIDTH="13"/>
> <FIELD attrname="ADRES" fieldtype="string" WIDTH="140"/>
> <FIELD attrname="POSTA_KODU" fieldtype="string" WIDTH="8"/>
> <FIELD attrname="SATIS_TARIHI" fieldtype="string" WIDTH="10"/>
> <FIELD attrname="SATIS_SAATI" fieldtype="string" WIDTH="8"/>
> <FIELD attrname="TESLIM_OLACAK_TARIH" fieldtype="string" WIDTH="10"/>
> <FIELD attrname="TESLIM_OLACAK_SAAT" fieldtype="string" WIDTH="8"/>
> <FIELD attrname="MKURKE_OPB_KODU" fieldtype="string" WIDTH="3"/>
> <FIELD attrname="BILETLER" fieldtype="nested">
> <FIELDS>
> <FIELD attrname="BILET_NO" fieldtype="string" WIDTH="15"/>
> <FIELD attrname="BILET_DEGER" fieldtype="string" WIDTH="15"/>
> </FIELDS>
> <PARAMS/>
> </FIELD>
> </FIELDS>
> <PARAMS/>
> </METADATA>
> <ROWDATA>
> </ROWDATA>
> </DATAPACKET>
>  
> I create this file with TMemo line.
>  
>   Memo1.Lines.Add('<ROW');
>   Memo1.Lines.Add('ADI_SOYADI="'+Query1Namesurname.AsString+'"');
>    --------
>   Memo1.Lines.Add('/>');
> But i can not add sub item for
>  
> <FIELD attrname="BILETLER" fieldtype="nested">
> <FIELDS>
> <FIELD attrname="BILET_NO" fieldtype="string" WIDTH="15"/>
> <FIELD attrname="BILET_DEGER" fieldtype="string" WIDTH="15"/>
> </FIELDS>
> How can i added it?
>  
>  
> Best regards,
>  
> Mehmet


  • References:

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.