I'm an XNA n00b.I'm trying to call the XML services in System, withusing System.Xmlso that I can use the Serialization stuff. For some reason, Xml doesn't exist in my System namespace, and I have loaded the 1.0 framework. Does anybody have any experience with XNA/XML?
10/22/2007 10:49:20 PM
You should be using .NET 1.1 Framework at a minimum, but really 2.0 is the common standard with 3.0 and eventually 3.5 being up-to-date.Not sure why you are having problems...using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Xml;namespace WindowsApplication1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); XmlDocument xd = new XmlDocument(); xd.Load("d:\\test.xml"); MessageBox.Show(xd.LastChild.Name); } }}Worked just fine and I've been using the System.Xml namespace extensively in a handheld application at work (and the Compact Framework is more thin than what you are working with).Sorry for not paying attention... this should actually help.http://forums.xna.com/thread/28136.aspx[Edited on October 23, 2007 at 10:14 AM. Reason : .]
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Xml;namespace WindowsApplication1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); XmlDocument xd = new XmlDocument(); xd.Load("d:\\test.xml"); MessageBox.Show(xd.LastChild.Name); } }}
10/23/2007 10:08:53 AM
i got it last night, had to add a reference to system.xml, thanks for the response though...now i just have to figure out how to draw triangles from the vector data in the xml
10/23/2007 11:21:29 AM
ha, Game Design & Development eh?
10/23/2007 3:35:39 PM
of course. this is a serious crash course in XNA for me
10/23/2007 4:07:17 PM
haha, I should probably start working on it.
10/23/2007 4:26:16 PM
welp damn. I guess XNA doesn't like my video card.
10/23/2007 8:02:38 PM
aw that sucks. yeah now would be a good time to start. this thing is a pain for me at least.i finally got the triangles drawing correctly and all that, but i'm still coding the quad tree decomp stuff. i'm meeting with the TA tomorrow to figure out some of it, cause i'm not completely sure what they want for a couple of things.
10/23/2007 8:49:56 PM
what course number is this?
10/23/2007 9:20:47 PM
CSC 481. Until this semester, it consisted of one really big group project using the unreal engine. Now the big project was moved to CSC 482 and 481 now consists of a few small projects with XNA, unreal, and another engine. So basically we're guinea pigs. [Edited on October 23, 2007 at 9:46 PM. Reason : ]
10/23/2007 9:44:01 PM
10/23/2007 11:56:21 PM
a very very good thing
10/24/2007 1:22:11 AM
good idea to split things up, weed out the not committal bastardswe had one guy who showed up to one meeting all year
10/24/2007 9:31:08 AM
Arnav.. what a tool. He seriously wastes 95% of the time he spends 'teaching'it literally took him 5 mins to answer questions that could've been answered in 5-6 seconds tops. Like the name of an assembly, or class or function to call. but alas, i sat through it. and during lectures, it ends up being 30 minute explanations of mindless theory with no entry point examples into the code.god they teach some of the worst computer science at this school. and let me tell you from pro experience.. developing in the gaming world is not computer science. I can be the first to vouch for that.
10/27/2007 2:15:26 AM