Get the latest Education e-news
 
Old 03-17-2010, 10:59 PM   #1
Killerapathy
Junior Member

Activity Longevity
0/20 14/20
Today Posts
0/11 sssssss23
Default XML in C++/C#

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?
Killerapathy is offline   Reply With Quote
Old 03-18-2010, 10:23 PM   #2
kenshee
Member

Activity Longevity
0/20 16/20
Today Posts
0/11 sssssss37
Default

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
kenshee is offline   Reply With Quote
Old 03-19-2010, 09:55 AM   #3
yaustar
Administrator
 
yaustar's Avatar

Activity Longevity
2/20 19/20
Today Posts
1/11 sssss2272
Location: UK
Default

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?
yaustar is offline   Reply With Quote
Old 03-19-2010, 02:49 PM   #4
Killerapathy
Junior Member

Activity Longevity
0/20 14/20
Today Posts
0/11 sssssss23
Default

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.
Killerapathy is offline   Reply With Quote
Old 03-19-2010, 07:16 PM   #5
Gshonk
Moderator

Activity Longevity
0/20 20/20
Today Posts
0/11 ssssss831
Location: Philadelphia, PA
Default

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
Gshonk is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Powered by vBulletin® Version 3.6.9
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
All times are GMT -8. The time now is 10:18 AM.






UBM Tech