Article View: borland.public.delphi.xml
Article #77CreateXMLFrom.NETDataSet
From: alan
Date: Mon, 14 Jul 2008 15:32
Date: Mon, 14 Jul 2008 15:32
13 lines
1313 bytes
1313 bytes
I am using Delphi 2006 .net, not the Delphi VCL for .Net. I have a
dataset to save to a xml file. The tags for the xml file are predefined
by another company and no xml style information is in the file, so I am
not able to do dsCo.WriteXml('E:\outdata.xml'); Below is an example of
the file I need to create. How do I go about doing this?
Thanks
-<corecords>
<corecord id="1234" co="AnyCo" phone="xxx-xxx-xxxx" contact="Anyone"/>
<corecord id="2345" co="AnyCoII" phone="xxx-xxx-xxxx" contact="AnyoneII"/>
</corecords>
Technical Details
Message-ID:
<487b7196$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f5d9b,245b3c5f3e229738,start X-Google-Attributes: gidf5d9b,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 14 Jul 2008 10:32:27 -0500 From: alan <alan@crowncabinetry.com> User-Agent: Messenger 9.0a1 (Windows/20071115) MIME-Version: 1.0 Newsgroups: borland.public.delphi.xml Subject: CreateXMLFrom.NETDataSet Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 71.216.149.105 Message-ID: <487b7196$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1216049558 71.216.149.105 (14 Jul 2008 08:32:38 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail