I'm new to Delphi and XML .... lucky me ...
I need to produce XML files to send data files I have in paradox files. Where do I start looking for the "right" tools to use in Delphi to write this ?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
When I asked what version you were using, I really meant what edition are you using because Enterprise & Architect editions of Delphi have built-in XML components whereas the Professional edition doesn't. I take it that you don't have an Enterprise/Architect edition of Delphi 7?
If you're very new to XML it's worth learning a bit about it first. W3Schools is always very good for making a start on a web technology:
If you're going to be doing a lot of work with XML it would be very useful to familiarise yourself with Altova's XMLSpy (there's a free trial of the Home Edition available which you can use as an evaluation copy) - it's one of the best XML Editors out there and I've found it to be very useful indeed.
If you give details of the problem you are having with multi-nodes we may be able to help you.
Clive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
Stretchwickerster: THANKS
I have enterprise edition..
I found the w3schools.com and have been working thru....
I'll look inside delphi .... but I learn better from examples WITH the book.
Problems:
I try to generate this
<scheduledata version="0.6">
<aircraft regnr="N100HG">
<updateenddate>
<datetime>2006-05-08T20:16:19Z</datetime>
<schedule>
<activity>
<type>Ferry</type>
<start>
<airport>SUS</airport>
<datetime>2006-04-24T12:00:00Z</datetime>
</start>
<end>
<airport>SUS</airport>
<datetime>2006-05-02T05:00:00Z</datetime>
</end>
<allowlisting>yes</allowlisting>
</activity>
</Schedule>
</updateenddate>
</aircraft>
* * * * * BUT I get this * * * * *
<scheduledata version="0.6"/>
<aircraft regnr="N100HG">
<updateenddate/>
<datetime>2006-05-08T20:16:19Z</datetime>
<schedule/>
<activity/>
<type>Ferry</type>
<start/>
<airport>SUS</airport>
<datetime>2006-04-24T12:00:00Z</datetime>
<end/>
<airport>SUS</airport>
<datetime>2006-05-02T05:00:00Z</datetime>
<allowlisting>yes</allowlisting>
</aircraft>
What delphi code are you using to generate this XML?
Clive
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
while not tableinput.eof do
begin
FLD:='aircraft';
FLD1:= 'N'+tableinput.Fields[0].asstring;
AElem:=XML1.Document.CreateElement(FLD);
XML1.Document.appendChild(AElem);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.