Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


XML (Delphi)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
tanjiajun_34
Grandmaster Cheater
Reputation: 0

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Sun Dec 06, 2009 11:24 am    Post subject: XML (Delphi) Reply with quote

A standard xml file be like this....
Code:

  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 <Family>
  <Father>Simon</Father>
  <Mother>blah blah blah</Mother>
 <My Name="Dog" Age="100">
  <Wife Age="23">Cat</Wife>
  <Child Age="100">Blah blah blah</Child>


Something like this... But is this the same type of xml file?
Code:
  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 <imgdir name="100000000.img">
 <imgdir name="info">
  <int name="version" value="10" />
  <int name="cloud" value="0" />
  <int name="town" value="1" />
  <float name="mobRate" value="1.0" />
  <string name="bgm" value="Bgm00/FloralLife" />
  <int name="returnMap" value="100000000" />
  <int name="forcedReturn" value="999999999" />
  <int name="hideMinimap" value="0" /> 


Are they attributes? If yes, why they contains a / before the >?
I thought it is like
<My Name="Dog" Age="100">
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

Joined: 09 May 2003
Posts: 25963
Location: The netherlands

PostPosted: Sun Dec 06, 2009 12:42 pm    Post subject: Reply with quote

those are attributes without data/text

You can write something like that as:
<My Name="Dog" Age="100"></My>

but also at:
<My Name="Dog" Age="100" />

to indicate the end of the object

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
tanjiajun_34
Grandmaster Cheater
Reputation: 0

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Sun Dec 06, 2009 8:15 pm    Post subject: Reply with quote

Oh ok ty db.

Also, may I ask about the xml again.
How does the program know which ChildNodes is i am referring to if there is like...

Code:
 <imgdir name="0">
  <int name="no" value="0" />
  <int name="x" value="0" />
  </imgdir>
 <imgdir name="1">
  <int name="no" value="0" />
  <int name="x" value="0" />
  </imgdir>


If there is two imgdir.
Does how I choose if I 1 2 read the value of "no" or the value of "x"? I thought both ar also "int"?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites