Description of XML-tags in XBSMP
--------------------------------
File Information Tags
---------------------
Following section describes the XML holding the information of the
directory entry (e.g. directory or file). If needed, entire file
information lock can be enclosed with DIRECTORYITEM tag.
NAME (mandatory)
- Contains a string that is a free form string representation of
the name of the item
- Name doesn't have to be unique within the directory (i.e. it
doesn't have to map directly to the actual name of the file
- Name should be used for example in menus
- Name must not be used in further accessing the file but instead
the real filename (acquired outside this XML) should be used
PATHNAME (optional)
- Section contains a real pathname of the item (relative to
server root)
- PATHNAME components are splitted to COMPONENT sections
- PATHNAME section has a DEPTH argument with integer value
that tells how many components are present in the PATHNAME
- Each COMPONENT section has a LEVEL argument with integer
value telling which level of the hierarchy, COMPONENT
describes.
- COMPONENT for each level from 1 to DEPTH has to be present.
- Filename in COMPONENT has to be quoted so that it does not
break XML syntax.
ATTRIB (mandatory)
- Contains one string from following set:
tag value description
----------------------------------------------------------
directory item is a directory
file item is a regular file
stream item is a data stream
option item is a configuration option that can be
updated by the client
readonlyoption item is a configuration option that can't be
updated by the client
- If multiple attributes applies to single item, multiple
ATTRIB tags can be present
INFO (optional)
- Contains a free form textual information of the item.
SIZE (optional)
- Contains one nonnegative integer that is the size of item.
- Relevant only if the item is a regular file
TIME (optional)
- Contains information about file access times.
- Each subtag holds one integer that represents seconds that has
passed from Jan 1 1970 00:00 UTC excluding leap seconds.
Negative values are legal but should not be used.
- Subtag names are
o ACCESS - Last time the file was accessed (read)
o MODIFICATION - Last time the file was modified (write)
o CHANGE - Last time the file metadata was
modified (e.g. chmod)
OPTIONVALUE (optional)
- Contains the value of the configuration option, given that
ATTRIB is option or readonlyoption.
- Option value string has to be quoted so that it does not
break XML syntax.
LEGALOPTIONVALUES (optional)
- Contains the set of legal option value for the given option,
given that ATTRIB value "option" is present.
- Each possible option value is in OPTIONVALUE subtag.
DTD for DIRECTORYITEM XML
-------------------------
]>
Examples
--------
File:
Good Movie, Part 1moviesgood_moviegood_movie_part_1.avifile787123245The First part of the imaginary film.
Root directory can be simply:
-directory
Some other directory:
Mp3mp3directoryMp3 Repository
Fixed configuration option might be
Server data directoryconfigurationdatadirreadonlyoption/usr/data/video/sharedServer has its data files in this directory.
Fixed configuration option server option might be:
AutoshutdownconfigurationautoshutdownoptionNOYESNOShut down the server after this connection
terminates