Loading XML Plugins in a app
Loading XML Plugins in a app
Ok so i am trying to load XML Plugins for halo 2 but i didnt no how to go about this. Anybody no what to do.
-
- Posts: 13
- Joined: Thu Mar 03, 2005 7:53 pm
XML Plugin
well it helps to know the programming language
with C# and any other OOP language
there are two options
you can read it and display it directly
C#
System.IO.StreamReader sr = new System.IO.StreamReader(fileName);
System.Xml.XmlTextReader xr = new System.Xml.XmlTextReader(sr);
System.Xml.XmlDocument plugin = new System.Xml.XmlDocument();
plugin.Load(xr);
XmlElement root = plugin.DocumentElement;
and go through them display them while reading each tag
you could do it a more proper way and read the document into a more
understandable data format but putting the values into some of your own classes like i do and then display it from that data format
and try ifp before the general XML format cause ifps are easier to read
and better all round
I have done a fair bit with plugin reading and a bit with writting plugins mainly in C# and java if you want more direct help you can talk to me over msn or AIM my AIM is chiefdestroyer you will have to get my msn from my AIM cause i don't want everyone having my msn
with C# and any other OOP language
there are two options
you can read it and display it directly
C#
System.IO.StreamReader sr = new System.IO.StreamReader(fileName);
System.Xml.XmlTextReader xr = new System.Xml.XmlTextReader(sr);
System.Xml.XmlDocument plugin = new System.Xml.XmlDocument();
plugin.Load(xr);
XmlElement root = plugin.DocumentElement;
and go through them display them while reading each tag
you could do it a more proper way and read the document into a more
understandable data format but putting the values into some of your own classes like i do and then display it from that data format
and try ifp before the general XML format cause ifps are easier to read
and better all round
I have done a fair bit with plugin reading and a bit with writting plugins mainly in C# and java if you want more direct help you can talk to me over msn or AIM my AIM is chiefdestroyer you will have to get my msn from my AIM cause i don't want everyone having my msn