Simple XSA client
Version: | 1.00
|
---|
Author: | Lars Marius Garshol
|
---|
Email: | larsga@ifi.uio.no
|
---|
Released: | 22.Mar.99
|
---|
The SimpleClient is an XSA client that
reads a list of XSA documents and then checks each document to see if
any of the information in it has changed since the last time the
document was checked.
Command-line operation
java SimpleClient [-s] documentlist savefile
Options:
- -s
- This option suppresses the standard startup message, making the
client print nothing but error messages and change notifications.
- documentlist
- This is the file where the list of documents is stored. This
must be an XML document. A sample (documents.xml) comes with the
client.
- savefile
- This is the file where the results of this run will be stored,
and where the client will look for the results from the previous
run. If the file does not exist it is created.
Document list file format
The document list uses an XML DTD which is exceedingly simple. The
elements are:
- prodlist
- the root element
- xsadoc
- represents an XSA document. Has two attributes:
- url, which is
required and holds the URL of the XSA document, and
- pids, which is optional and holds a list of the IDs of the
products the user wants to monitor. (This can be used to filter
out uninteresting products in the XSA document.) The default is
that all products are of interest.
The actual DTD is:
<!ELEMENT prodlist (xsadoc+)>
<!ELEMENT xsadoc EMPTY>
<!ATTLIST xsadoc url CDATA #REQUIRED
pids NMTOKENS #IMPLIED>
Required software
- Java 1.1 or higher
- A SAX parser and the SAX API
Possible later extensions
- Add the ability to send change reports by email.
- A GUI version.
- A Python version.
Suggestions of all kinds are welcome.
Lars Marius Garshol, 19990322.