Magenta XML Format
The Magenta XML format is relatively simple. There is no DTD produced when you save an XML file in Magenta; it relies only on the document being well-formed for parsing.
Also remember that XML is case-sensitive.
Every document is enclosed in a pair of <magentalog>
tags. Within this pair, we have a single <stamp>
pair, which defines text to be used as a timestamp for the log itself, as well as the timestamp in the time
parameter.
The rest of the document consists of <entry>
pairs. <entry>
tags must have the time
parameter, which gives the timestamp of that log entry. An <entry>
has the following tags within it:
<user>
- Identifies the user who sent the message. Has the following parameters:ip
- Mangled IP address of the user.type
- Type of the user. This can be chatserver, user, magenta, cyan, guest, private, or unknown. Aside from the obvious ones, private identifies a private message sent by you. The ip
parameter and tag text will contain the user you sent the message to, and the message type will always be set to broadcast. Unknown generally indicates an error of some kind.<message>
- Gives the message that the previous user sent. Has the following parameter:type
- Type of the message sent. This can be broadcast (sent to the room), broadcast-enter (an enter message), broadcast-leave (a leaving message), private (a private message received by you), or unknown (generally indicates an error, or an heretofore unimplemented message type).