Find Jobs
Hire Freelancers

Delphi: Unit wrapper for basic XML read/write

$30-5000 USD

已完成
已发布大约 14 年前

$30-5000 USD

货到付款
Dear Coders, I need a unit for Delphi 7 to create a XML file from the scratch and write values to it and read them at a later time. When the empty XML file is created, we want to define all sections/subsections that are going to appear in the XML file and write values to them. Suppose that we want to generate the following XML file: **<DOCUMENT> ? <SectionA> ? ? ? ? ? ? <SectionA1> ? ? ? ? ? ? ? ? ? <keyA1>Hello<\keyA1> ? ? ? ? ? ? </SectionA1> ? ? </SectionA>? ? ? ? ? ? ? ? <SectionB> ? ? ? ? ? ? ? ? <SectionB1> ? ? ? ? ? ? ? ? ? <keyB1>Hello<\keyB1> ? ? ? ? ? ? </SectionB1> ? ? </SectionB>? ? ? ? ? </DOCUMENT>** We need a funtion to first define all the sections and subsections that our XML file will have. A possible solution would be the implementation of the following function: CreateXMLSection(parentSectionName, SectionName); For the above example it would be: CreateXMLSection(nil, 'DOCUMENT');? ? // nil for the main section CreateXMLSection('DOCUMENT', 'SectionA'); CreateXMLSection('DOCUMENT', 'SectionB'); CreateXMLSection('SectionA', 'SectionA1'); CreateXMLSection('SectionB', 'SectionB1'); Notice that we will NOT use same sub-sections names, so, the parent section can be found without ambiguity. After we have defined the section names, we just insert data into it. Example (as shown above): WriteString('SectionA1', 'keyA1', 'Hello World'); WriteString('SectionB1', 'keyB1', 'Hello World'); Functions that we need ------------------------------ CreateXML(pFileName)? // create an empty XML file SaveXML();? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? // save our XML to file LoadXML(pFileName)? ? ? // load our previous saved XML file CreateXMLSection(parentSectionName, SectionName); WriteString(Section, Key, Value) ReadString(Section, Key) WriteBoolean(....) ReadBoolean(....) WriteInteger(....) ReadInteger(....) The solution must be written in Delphi 7. Thanks, A. ## Deliverables Delphi 7, Windows
项目 ID: 3328473

关于此项目

4提案
远程项目
活跃14 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$42.50 USD 在4天之内
5.0 (12条评论)
5.7
5.7
4威客以平均价$91 USD来参与此工作竞价
用户头像
See private message.
$255 USD 在4天之内
4.5 (13条评论)
4.5
4.5
用户头像
See private message.
$42.50 USD 在4天之内
5.0 (8条评论)
3.9
3.9
用户头像
See private message.
$25.50 USD 在4天之内
4.9 (4条评论)
1.4
1.4

关于客户

SPAIN的国旗
Jerez de la Frontera, Spain
5.0
72
会员自9月 22, 2004起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。