xml file

If you need support and would like to ask your question in English please enter here
User avatar
SpIdErPiGgY
Posts: 4
Joined: Tue 16. Apr 2024, 19:07
Location: Erpe-Mere, Aalst, BE
Contact:

xml file

Post by SpIdErPiGgY »

Can you please show me how to create a .xml file? The structure...

Thank you
phpBB NL Extension translations, also on request.
User avatar
Mike-on-Tour
Administrator
Posts: 332
Joined: Sat 21. Mar 2020, 19:02
Location: Wittingen

Re: xml file

Post 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.
Gruß
Mike
User avatar
SpIdErPiGgY
Posts: 4
Joined: Tue 16. Apr 2024, 19:07
Location: Erpe-Mere, Aalst, BE
Contact:

Re: xml file

Post 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.
phpBB NL Extension translations, also on request.
User avatar
Mike-on-Tour
Administrator
Posts: 332
Joined: Sat 21. Mar 2020, 19:02
Location: Wittingen

Re: xml file

Post 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++.
Gruß
Mike
User avatar
Tiger21820
Posts: 9
Joined: Wed 29. May 2024, 11:02
Location: AREA UNKNOWN
Contact:

Re: xml file

Post 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!
Master of Fire & Ice!
User avatar
Mike-on-Tour
Administrator
Posts: 332
Joined: Sat 21. Mar 2020, 19:02
Location: Wittingen

Re: xml file

Post 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).
Gruß
Mike
User avatar
SpIdErPiGgY
Posts: 4
Joined: Tue 16. Apr 2024, 19:07
Location: Erpe-Mere, Aalst, BE
Contact:

Re: xml file

Post 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 😁
phpBB NL Extension translations, also on request.
User avatar
Mike-on-Tour
Administrator
Posts: 332
Joined: Sat 21. Mar 2020, 19:02
Location: Wittingen

Re: xml file

Post 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.
Gruß
Mike
User avatar
SpIdErPiGgY
Posts: 4
Joined: Tue 16. Apr 2024, 19:07
Location: Erpe-Mere, Aalst, BE
Contact:

Re: xml file

Post 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
phpBB NL Extension translations, also on request.
User avatar
Mike-on-Tour
Administrator
Posts: 332
Joined: Sat 21. Mar 2020, 19:02
Location: Wittingen

Re: xml file

Post 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.
Gruß
Mike
Post Reply