| 1 |
What the hell am I? |
| 2 |
|
| 3 |
I'm a simple XML syntax parser. Not a real XML parser. Nothing to do with DTD's. |
| 4 |
Really speaking, what we do here is not XML. If it's anything it's a DDL (Data |
| 5 |
Description Language). |
| 6 |
|
| 7 |
In short the base syntactical rules are the same as XML, giving us a |
| 8 |
hierarchical file-structure of key-value pairs (just like the Windows(tm) |
| 9 |
registry). As a bonus, it's human-readable, and human editable as well as |
| 10 |
being a doddle to handle programmatically |
| 11 |
|
| 12 |
This lends itself very nicely to configuration files, and that's _exactly_ |
| 13 |
what we're doing here. |
| 14 |
|
| 15 |
|
| 16 |
** Warning ** |
| 17 |
Just at the moment, I'm not supporting: |
| 18 |
|
| 19 |
* XML empty tags (I did, but I'm not right now) |
| 20 |
- Update: empty tags are back |
| 21 |
* Spaces,tabs,carriage returns, line-feeds inside entities (just because) |
| 22 |
- Update: I'm now supporting whitespace within the entity, but not |
| 23 |
leading or trailing whitespace |
| 24 |
* modifiers inside tags (eg: <something mod1="blah" colour="blue"> ) |
| 25 |
(and honestly, I'm not at all sure what we would do with them if we supported |
| 26 |
them anyway) |