Jump to content


Photo

Text To Xml Conversion


  • This topic is locked This topic is locked
6 replies to this topic

#1 GreatGold

GreatGold

    Creative Text Department

  • Xenocide Inactive
  • 852 posts

Posted 16 January 2005 - 02:07 PM

Hey -

Just out of curiosity, is there a tool that automatical converts normal text files into XML? If not, might it be worthwile to create a simple one? Keep in my, I have no idea what that would entail or if it is just easier to teach XML to each person in the CTD that will be converting them. It just seems that something like a simple conversion tool might exist that is free? I'm gonna golook for one now, but I'd like programmers (ot anyone who knows about things like this) opinions.,

Thanks,
Gold

EDIT: So, I took a look and found nothing that was as straightfoward and simple as I was hoping (at least that was free). In lieu of that, would someone that understands XML either pointout a helpful tutorial website, or creae a short tutorial themselves?

Edited by GreatGold, 16 January 2005 - 02:23 PM.

---
Rule #33:
Celatid venom is a paralytic nerve toxin, not 'happy juice".

---
Posted Image

#2 rincewind

rincewind

    Programming Department

  • Xenocide Programming Department
  • 541 posts

Posted 16 January 2005 - 02:30 PM

Hey -

Just out of curiosity, is there a tool that automatical converts normal text files into XML?  If not, might it be worthwile to create a simple one?  Keep in my, I have no idea what that would entail or if it is just easier to teach XML to each person in the CTD that will be converting them. It just seems that something like a simple conversion tool might exist that is free? I'm gonna golook for one now, but I'd like programmers (ot anyone who knows about things like this) opinions.,

Thanks,
Gold

EDIT:  So, I took a look and found nothing that was as straightfoward and simple as I was hoping (at least that was free).  In lieu of that, would someone that understands XML either pointout a helpful tutorial website, or creae a short tutorial themselves?

<{POST_SNAPBACK}>


Did you have a look at the xnet.xml file in the Testing Release? It's plain text. Basicly, you can just copy&paste the existing entry and change the text. Concerning the name, it always has to start with XNET_ and should be unique for each entry (all uppercase latters please).

In order to have Xenocide display the real name instead of the symbolic one you put into the xnet.xml, you also have to create a mapping for it in data/languages/english.xml, just take a look at the existing entries, syntax should be clear then.

For editing the XML-files, I strongly recomment using a validation-tool like XMLSpy (you can download it for free, just google for it). If you have non-valid files, xenocide will most likely crash (you can get info on it in the xenoui.log or Ogre.log files).

Hope my explanations where not too confusing.

Rincewind

P.S: Coding a conversion utility would not work very well as the rtf's differ slightly in structure, etc. so you would have to handtune anyway.
Posted Image

I love boost!!! The next best thing since the invention of C++.

#3 GreatGold

GreatGold

    Creative Text Department

  • Xenocide Inactive
  • 852 posts

Posted 16 January 2005 - 02:42 PM

Hi -

Ya, found the xml file you were talking about, and installed XMLSpy. It is actually pretty straightfoward. Thanks for the info!

Thanks,
Gold
---
Rule #33:
Celatid venom is a paralytic nerve toxin, not 'happy juice".

---
Posted Image

#4 RustedSoul

RustedSoul

    Creative Text Department

  • Xenocide Creative-Text Departmen
  • 477 posts

Posted 17 January 2005 - 04:20 AM

Kander was toying with the idea of a program to translate texts into xml.. Up until this point I've just been doing it with a 10 minute crash course in xml :Coffee:
http://www.xcomufo.c...?showtopic=6182


anyone wanting to scratch the surface with some basics can find some outdated stuff here to toy with.
http://www.xcomufo.c...?showtopic=4625
http://www.xcomufo.c...?showtopic=4422
also RK has pointed me in this direction a few times
www.xfront.com


Recommend XMLspy and notepad

so 10min crash course and no programming knowledge.. it's not a bad deal :Coffee:

#5 Guest_Azrael_*

Guest_Azrael_*
  • Guests

Posted 17 January 2005 - 05:45 PM

Ohhhhh, great!, thanks RS, I was looking for one of those =b

#6 RustedSoul

RustedSoul

    Creative Text Department

  • Xenocide Creative-Text Departmen
  • 477 posts

Posted 17 January 2005 - 11:56 PM

ROFL, just ask me next time.. for some strange reason I actually know where 98% of CTD work is :rolleyes:

#7 Guest_Azrael_*

Guest_Azrael_*
  • Guests

Posted 18 January 2005 - 05:45 PM

ROFL, just ask me next time.. for some strange reason I actually know where 98% of CTD work is  :rolleyes:

<{POST_SNAPBACK}>


That's why you're the senior :wink1: