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 Load / Parse

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

Joined: 25 Jun 2007
Posts: 695

PostPosted: Wed Dec 10, 2008 7:39 pm    Post subject: XML Load / Parse Reply with quote

How can I read from an XML file? I'd like to find the tag <>, then read the value until (obviously) the </>.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Dec 10, 2008 8:52 pm    Post subject: Reply with quote

I asked Irwin about this a while ago, use this:
XmlLite

_________________
Back to top
View user's profile Send private message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Wed Dec 10, 2008 9:38 pm    Post subject: Reply with quote

Thanks lurc, but I was thinking of actually hard-coding it. Therefore, I could use the search and replace function for other things if needed.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Dec 11, 2008 6:35 am    Post subject: Reply with quote

Then you could use _tcsrchr to find occurences of '<' and '>' characters and work from that.
_________________
Back to top
View user's profile Send private message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Thu Dec 11, 2008 3:48 pm    Post subject: Reply with quote

Thank you much lurc. Can I add you on MSN?
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Dec 11, 2008 4:18 pm    Post subject: Reply with quote

Sure, but I'm hardly on it.
Add anyways, but if you really need me PM cause I actually visit CEF Razz

_________________
Back to top
View user's profile Send private message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Fri Dec 12, 2008 11:02 pm    Post subject: Reply with quote

How about replacing the text that's found?
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sat Dec 13, 2008 3:18 pm    Post subject: Reply with quote

Well that's a bit more tricky cause you have to completely push back the entire rest of the file Razz so say you find '<' then '=' you would modify the sting 1 place after that pointer and then get the length of the data your inserting and push back that entire data after the length of the data minus the length of what Is already there Razz
_________________
Back to top
View user's profile Send private message
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Mon Dec 15, 2008 5:16 pm    Post subject: Reply with quote

Thanks; I'll try it.
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