|
|
#1 | ||||||||
|
Junior Member
|
Hey everyone, I'm trying to store my data in XML through c++ but I cant find any sample code that'll tell me what #include or headers I need. Can anyone give me a link to a tutorial (hopefully easy to understand) or some sample code?
|
||||||||
|
|
|
|
|
#2 | ||||||||
|
Member
|
I would just go ahead and hardcode the xml formatting using printf's or couts. Unless your not familiar with XML in which case google is your friend.
__________________
www.toughaspixels.com |
||||||||
|
|
|
|
|
#3 | ||||||||
|
Administrator
Location: UK |
You can use TinyXML for C++ which is an Open Source library. C# has an XML library as part of .NET. Which language do you want to use?
__________________
Steven Yau [Alix Games Blog] [Portfolio] [How I broke into the Games Industry] [Why I left my Games Job] [How to be a Games Tester] [Getting back into the Game] |
||||||||
|
|
|
|
|
#4 | ||||||||
|
Junior Member
|
Ahhhh, well i asked my professor and she told me to just hard code the information.
Using sprintf for formatting the string and ifstream for writing it. I'll check out TinyXML for c++, thanks! The XML library in .NET is what i was using for c#. It was very easy to use with all its convert functions. |
||||||||
|
|
|
|
|
#5 | ||||||||
|
Moderator
Location: Philadelphia, PA |
TinyXML is awesome. Yay Open Source!! :P
__________________
Grant Shonkwiler() "I would love to fix the world if someone would just give me the source code" Website Industry blog LinkedIn |
||||||||
|
|
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
All times are GMT -8. The time now is 08:51 AM.























Linear Mode

