PDA

View Full Version : Ruleset Creation Guide and XML Tutorial



Foen
February 20th, 2008, 07:25
Folks

I am trying to pull together a ruleset creation guide (complete with walkthrough and final ruleset) and want to concentrate on FG and the ruleset mechanics.

As a result, I'm not keen to include a potted tutorial on XML, but would rather assume the reader has such knowledge. On the other hand, for readers who don't, I'd like to include a cross-reference to a decent XML tutorial elsewhere.

Does anyone know of a good tutorial site to which I can point? A PDF would be even better, as some people like to browse this stuff on a laptop, while disconnected.

I'll post the final guide when its finished, sometime in 2012! :D

Thanks for the help,

Stuart

jthm0138
February 20th, 2008, 07:47
Post removed by user

Astinus
February 20th, 2008, 21:02
I don't know of one, Foen. I'm one of those who would need one. But I'd just like to add that your project is noble indeed. I will look forward to 2012.

Griogre
February 21st, 2008, 01:09
There are a couple of pages on the site which should cover what anyone needs to know about XML for FG.
https://www.bloomington.in.us/~mongin/xml-tutorial/Concepts.htm
https://www.bloomington.in.us/~mongin/xml-tutorial/Examples.htm

The example is over kill though.

DNH
February 21st, 2008, 09:20
I learnt much of what I know about XML from the W3Schools website at https://www.w3schools.com/xml/default.asp. This will be five or six years ago now but the core stuff won't have changed.

Hamish
February 21st, 2008, 13:53
I was just about to post the same link here. w3schools is the ultimate website for web-related references.

Griogre
February 21st, 2008, 19:46
Of course you probably want to mention FG just uses elements and attributes - no schema or DTD so basically all you really need to know is it is case sensitive and you have to close any element you open.

Foen
February 22nd, 2008, 06:20
Although it doesn't use attributes, the text values need to be properly xml-encoded. If editing the db.xml by hand, or creating windowclasses with embedded static text, you still need to use & etc.

Thanks for the links folks, I like the w3schools one in particular (although I'll admit it takes you well beyond the level needed for FG work).

Cheers

Stuart

Griogre
February 22nd, 2008, 07:00
Good point on the forbidden text characters like <, ", &, ect.

Hmm FG uses tons of attributes. Those are the xxx="something" after the element name.

Edit: Ack I forgot how hard it is to get XML to show up on this board. I was going to give an example. :p

Foen
February 22nd, 2008, 07:12
Bah! I confused attributes with entities ... but you got my meaning!

Stuart