XMLIO 1.0.1
425
19
425
19
V1.0.1
Sorry there was a nasty bug in the Load method.
NOTE: For developers only!
Pure gamers please move on. There's nothing to see here for you.
XMLIO is a .net library, written in C#, for saving and loading data containers (even with nested containers) to/from XML files. It makes handling XML data in your project a piece of cake (look at the picture) as you don't need to care for the XML structure.
I use XMLIO for many years even since before I started developing mods for GTA IV.
Important
XMLIO utilizes the WCF Data Contract under the hood and therefore creates and expects a w3.org standardized XML layout (look at the XML header line in the picture). That means you can NOT read any kind of XML files, just the ones created by XMLIO or XML files which comply to the aforementioned standard.
XMLIO comes in two flavors, for any CPU or explicitly for x64 (use the latter for GTA V mods). All public members are fully documented for Intellisense.
Includes help in .chm format and also for MSHelp 2.0.
This download includes a detailed PDF guide with all information you need, including several samples.
You need .net Framework 4.5.2.
Oh I almost forgot: you need to reference Cyron43 as namespace (using Cyron43;)
Copyright by Cyron43 aka Osmone Everony. You may NOT upload this library as your own work but of course you are free to integrate it in your project.
Sorry there was a nasty bug in the Load method.
NOTE: For developers only!
Pure gamers please move on. There's nothing to see here for you.
XMLIO is a .net library, written in C#, for saving and loading data containers (even with nested containers) to/from XML files. It makes handling XML data in your project a piece of cake (look at the picture) as you don't need to care for the XML structure.
I use XMLIO for many years even since before I started developing mods for GTA IV.
Important
XMLIO utilizes the WCF Data Contract under the hood and therefore creates and expects a w3.org standardized XML layout (look at the XML header line in the picture). That means you can NOT read any kind of XML files, just the ones created by XMLIO or XML files which comply to the aforementioned standard.
XMLIO comes in two flavors, for any CPU or explicitly for x64 (use the latter for GTA V mods). All public members are fully documented for Intellisense.
Includes help in .chm format and also for MSHelp 2.0.
This download includes a detailed PDF guide with all information you need, including several samples.
You need .net Framework 4.5.2.
Oh I almost forgot: you need to reference Cyron43 as namespace (using Cyron43;)
Copyright by Cyron43 aka Osmone Everony. You may NOT upload this library as your own work but of course you are free to integrate it in your project.
Première mise en ligne : 1 février 2017
Dernière mise à jour : 14 février 2017
Téléchargé pour la dernière fois : il y a 5 jours
25 commentaires
V1.0.1
Sorry there was a nasty bug in the Load method.
NOTE: For developers only!
Pure gamers please move on. There's nothing to see here for you.
XMLIO is a .net library, written in C#, for saving and loading data containers (even with nested containers) to/from XML files. It makes handling XML data in your project a piece of cake (look at the picture) as you don't need to care for the XML structure.
I use XMLIO for many years even since before I started developing mods for GTA IV.
Important
XMLIO utilizes the WCF Data Contract under the hood and therefore creates and expects a w3.org standardized XML layout (look at the XML header line in the picture). That means you can NOT read any kind of XML files, just the ones created by XMLIO or XML files which comply to the aforementioned standard.
XMLIO comes in two flavors, for any CPU or explicitly for x64 (use the latter for GTA V mods). All public members are fully documented for Intellisense.
Includes help in .chm format and also for MSHelp 2.0.
This download includes a detailed PDF guide with all information you need, including several samples.
You need .net Framework 4.5.2.
Oh I almost forgot: you need to reference Cyron43 as namespace (using Cyron43;)
Copyright by Cyron43 aka Osmone Everony. You may NOT upload this library as your own work but of course you are free to integrate it in your project.
Sorry there was a nasty bug in the Load method.
NOTE: For developers only!
Pure gamers please move on. There's nothing to see here for you.
XMLIO is a .net library, written in C#, for saving and loading data containers (even with nested containers) to/from XML files. It makes handling XML data in your project a piece of cake (look at the picture) as you don't need to care for the XML structure.
I use XMLIO for many years even since before I started developing mods for GTA IV.
Important
XMLIO utilizes the WCF Data Contract under the hood and therefore creates and expects a w3.org standardized XML layout (look at the XML header line in the picture). That means you can NOT read any kind of XML files, just the ones created by XMLIO or XML files which comply to the aforementioned standard.
XMLIO comes in two flavors, for any CPU or explicitly for x64 (use the latter for GTA V mods). All public members are fully documented for Intellisense.
Includes help in .chm format and also for MSHelp 2.0.
This download includes a detailed PDF guide with all information you need, including several samples.
You need .net Framework 4.5.2.
Oh I almost forgot: you need to reference Cyron43 as namespace (using Cyron43;)
Copyright by Cyron43 aka Osmone Everony. You may NOT upload this library as your own work but of course you are free to integrate it in your project.
Première mise en ligne : 1 février 2017
Dernière mise à jour : 14 février 2017
Téléchargé pour la dernière fois : il y a 5 jours
@All: You can't persist complex types like Vector3 (for instance) because such classes/structs are no pure data containers. In order to save a location you need to transform Vector3.Position into 3 float properties for X, Y, and Z.
After reading everything, I still don't know what this does.
This is very helpful, thank you for sharing :)
Nice dude! Keep it up
@TheLoneWolf293 Its something like NativeUI, its for c# scripters to make only a few lines of code to load xml files or save them for example
Looks interesting, I wanted to use XML on some scripts but found no clear guides or stuff about it, this might help! I'll have to check it out! =)
@ImNotMentaL Have you read the guide? It's really dead simple.
1. Create a data container. That's a simple public class which contains nothing but properties (see picture above). Note that all members must be public or XMLIO can't access them.
2. create an instance of this class. Let's call it _config for this example.
2. Write values into the properties of this instance as needed.
3. Now call the Save method with just this line of code: new XMLIO(@"YourDesiredPath\YourFilename.xml).Save(_config);
That's it for saving already.
In order to load the data do the following:
1. Create an instance of that data container (_config).
2. call the Load method by using this line of code: _config = new XMLIO(@"YourDesiredPath\YourFilename.xml).Load<YourDataContainer>();
Sorry I'm no VB guy but I know there are free online converters for C# to VB.
Oh awesome! @MrGTAmodsgerman
@ImNotMentaL I have just read you mentioned Tuples. Please take my advice and avoid Tuples if possible. If you wrote a method that takes more than 3 parameters and you use these across your project then I recommend you create a data container. Read about "Clean code development". :)
Awesome
@Cyron43 i use tuple because like some natives have more than 1 outputarguments
@ImNotMentaL That's a reasonable case. :)
@Cyron43 your documentation is unclear, i'm stuck on ShowConfig
can you make a demo application on how to read/write to listview? I'm kind of stupid
@ImNotMentaL Will do. I'll send it to you by email. :)
@Cyron43 thanks m8
@ImNotMentaL Thanks for making me this demo. I found a nasty bug in the Load method. This is fixed now. New version is awaiting admin approval.
@Cyron43 are u going to send me the demo with the latest AnyCPU XMLIO.dll?
@Cyron43 cus i'm making a mod to load maps like spooner and mapeditor
@ImNotMentaL Mail is out and XmlIo V1.0.1 for any CPU is included.
Hey man, i've been trying to track down your teleportals mod as i think it would be perfect for airport teleports around the map. Where did it go?