Page 1 of 1
xml file
Posted: Tue 25. Jun 2024, 06:02
by SpIdErPiGgY
Can you please show me how to create a .xml file? The structure...
Thank you
Re: xml file
Posted: Tue 25. Jun 2024, 07:25
by Mike-on-Tour
I am not certain I understand your question correctly but how the structure of a XL file has to look like you can see
here and if you want to create it using PHP you should read
this.
Re: xml file
Posted: Tue 25. Jun 2024, 08:33
by SpIdErPiGgY
In hangman / acp you can upload an xml file with words, categories etc, but I would like to know how to create that xml file.
Re: xml file
Posted: Tue 25. Jun 2024, 09:38
by Mike-on-Tour
There is (was? I can't find it at the moment) a German web page where one could download XML files with German search terms for which I wrote this import routine.
But since Hangman can export the currently stored search terms from its database to a XML file as well (please see the next item in Hangman's ACP settings tab) these naturally can also be imported (although they do have a slightly different structure).
If you want to set new terms by importing them through a XML file you can do that but it would be more convenient to do this through the frontend tab but you can always export the terms currently in your database and then edit that XML file and import the new terms in that way.
For editing a XML file I recommend using Notepad++.
Re: xml file
Posted: Sat 6. Jul 2024, 15:25
by Tiger21820
This is the structure I use for my xml files:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<hangdb>
<hangman>
<word>Tiger</word>
<help>Master of Fire & Ice!</help>
</hangman>
</hangdb>
Hope this helps!
Re: xml file
Posted: Sat 6. Jul 2024, 17:33
by Mike-on-Tour
This is the correct structure, within the tags
<hangdb>
and
</hangdb>
you can place as many times as you please the following structure:
Code: Select all
<hangman>
<word>Example term</word>
<help>Example help</help>
</hangman>
and then import that file to present those terms to your players (please keep in mind that you are not going to see the terms you have imported).
Re: xml file
Posted: Mon 8. Jul 2024, 06:29
by SpIdErPiGgY
Thank you! I just made a Dutch list with 170 words, Proverbs and sayings. When I'm finished, maybe I can post it in here for the Dutch users? I would like to create 830 more

Re: xml file
Posted: Mon 8. Jul 2024, 12:39
by Mike-on-Tour
There is only one other user from Belgium in this forum - and he has not been active for several years but please go ahead.
It might be a good idea to open a new forum for this so if you still want to post your xml file(s) here please let me know and I will create such a forum.
Re: xml file
Posted: Tue 9. Jul 2024, 19:40
by SpIdErPiGgY
Mike-on-Tour wrote: Mon 8. Jul 2024, 12:39
There is only one other user from Belgium in this forum - and he has not been active for several years but please go ahead.
It might be a good idea to open a new forum for this so if you still want to post your xml file(s) here please let me know and I will create such a forum.
You don't need to create a forum just for me, only if there are users that can also post . xml files in their languages...
At the moment I created a Dutch file with 1022 word, proverbs and sayings
Re: xml file
Posted: Tue 9. Jul 2024, 19:57
by Mike-on-Tour
Okay, so I will refrain from creating a forum for Hangman XML files.
If you are still wish to share XML files you may want to do it in the Hangman topic on
phpbb.com.
I am pretty certain that there more people than here will read it.