A lightweight SAX-style XML parser.


  • Read and write XML files
  • Attributes, empty elements, and comments supported
  • Pretty formatted writing
  • Lightweight and kept simple, hence the name "Derp"
  • Example usage scripts
  • Written in pure GML
  • Free and open source: Github repo


  • Does not validate (detect errors in) read XML files. But this makes the code simpler.
  • Not as powerful as DOM parsers. But it's good for simple tasks.

A note about other XML assets

I made DerpXml because I needed an free, open-source XML parser to use in my free, open-source level editor. I don't mean to steal business from other assets. DerpXml is SAX-styled, while the other paid assets on the marketplace are DOM-styled and inherently much more powerful. There are a few very high-quality assets out there; go check them out real quick if you haven't already.


DerpXml doesn't have any maintenance costs, and I'm fortunate enough to not need financial help at the moment. But if DerpXml was really helpful to you, consider donating a few dollars to someone else who made something for free on the internet and could use the support.

License (Added Oct 14 2016)

MIT License:


  • 1.0.0 - Aug 08 2016

    Initial release

End User Licence Agreement (EULA).

Version 1.0.0. Published August 8, 2016

Created with GameMaker: Studio v1.4.1757

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Anonymous 14 October 2018


Shigeru h 25 July 2018


Greg M 20 November 2017


Renante S 07 July 2017

This is great, easy to use

Can I ask just one question, how can I use an xml from a url? I use this but it returns ERROR!!! :: Failed to open file:
when I do this DerpXmlRead_OpenFile('');


Gamal S 30 October 2016


I tested this asset in writing and parsing rather complex xml files and it worked flawlessly. The code is very well organized and easy to understand, with examples for writing and parsing simple and complex xml.

Highly recommended for any one interested in using xml in Game Maker Studio.


Francisco B 10 September 2016

Excelent tool, easy to use

...yet there is still "one" issue. I'm having trouble loading an "included file", and saving over it.

If I could do that, this would level up from Excellent Tool to The Perfect Tool.

PS: Yes, I'm trying to create a level editor.


Patrick (Publisher) 10 September 2016

Thanks! As for your issue, from what I can tell there's no way to overwrite any Included Files. You can read from Included Files, but only write to the Save Area. So it's a limitation of GameMaker.

The page is confusing, but try reading


Victoria T 16 August 2016

An amazing and easy to use tool

I was given the pleasure of testing this asset before release, and making sure everything was stable and easy to understand. And honestly, the final product is just that. Going into testing this, I had no idea how XML worked, but just from reading the documentation and fiddling around with it, I understand its uses, its formatting, and how it works.

DerpXml is a fantastic asset that can be used for pretty much anything that uses saving/loading. So far I've integrated it into a level editor and a survival game that reads item properties from an external file, and I can't wait to find even more uses for it. In my opinion, using XML is so much better than the file_text_* or ini_* functions, simply because it is a lot more organized, and WAY more flexible.

If you're looking to do anything related to level editors, preferences, or anything of the sort, definitely check this asset out.


Patrick (Publisher) 10 September 2016

Thanks a lot! :)

Package contents

Loading, please wait

What is the issue?

Back to Top