troubleshooting Question

Table to XML (Visa Versa)

Avatar of XYZCode
XYZCode asked on
Delphi
5 Comments1 Solution485 ViewsLast Modified:
This question kinda goes with my other question: JPG to Base64

I need function which creates a XML file from a database table depending on first character of text of a particular field (FieldName) return true is successful and false if it failed, passing a errorcode

Function ExportToXML(Table: TTable; FieldName: String; C: CHar; FileNanme: String; var ErrorCode: Integer): Boolean
begin
 //
end;

I need function which loads the XML file to a database table and inserts each record if the record doesn' already exists (using fieldName) to searchon

Function ImportFromXML(Table: TTable; FieldName: String; FileName: String): Boolean
begin
 //
end;


Show an example using the following field types

Integer
Float
String
Date
Time
DateTime
Memo
Graphic  (only JPGs used)



memo and image (jpg) field data should be encoded in the XML file when exporting  and decoded back when importing

Im willing to use an unit or component (as long as they are free and are free to use in commercial apps)

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros