[jdom-commits] CVS update: jdom-contrib/src/java/org/jdom/contrib/ids/doc-files
cvs at jools.org
cvs at jools.org
Wed Feb 6 17:27:29 PST 2002
Date: Wednesday February 6, 2002 @ 20:27
Author: cvs
Update of /home/cvspublic/jdom-contrib/src/java/org/jdom/contrib/ids/doc-files
In directory jools.org:/tmp/cvs-serv32118/doc-files
Added Files:
TestIds.java testIds.dtd testIds.xml
Log Message:
Adding a cool "ids" contrib package from Laurent Bihanic. From the README:
This package demonstrates how to use the attribute type support provided
by JDOM to create JDOM documents that allow looking up elements using
the value of their ID attribute.
Note that for an attribute to be recognized as an ID, the XML document
must be associated to a DTD which defines the type of the attributes.
For detailed information, please refer to the package Javadoc documentation
or the file "package.html" in this directory.
The "doc-files" directory contains simple test cases that demonstrate how
to use the IdFactory to build an IdDocument and how to retrieve an element
by its ID from an IdDocument:
- TestIds.java is a simple program that builds an IdDocument from the
filename passed as first argument and looks up the element whose ID
value matches the second argument.
Usage: java TestIds <XML file> <ID>
- testIds.xml is an example of XML file that can be used with the above
sample. It is associated to the DTD "testIds.dtd" which defines which
attributes are IDs.
-jh-
===================================================================
File: TestIds.java Status: Up-to-date
Working revision: 1.1 Thu Feb 7 01:27:29 2002
Repository revision: 1.1 /home/cvspublic/jdom-contrib/src/java/org/jdom/contrib/ids/doc-files/TestIds.java,v
Existing Tags:
No Tags Exist
===================================================================
File: testIds.dtd Status: Up-to-date
Working revision: 1.1 Thu Feb 7 01:27:29 2002
Repository revision: 1.1 /home/cvspublic/jdom-contrib/src/java/org/jdom/contrib/ids/doc-files/testIds.dtd,v
Existing Tags:
No Tags Exist
===================================================================
File: testIds.xml Status: Up-to-date
Working revision: 1.1 Thu Feb 7 01:27:29 2002
Repository revision: 1.1 /home/cvspublic/jdom-contrib/src/java/org/jdom/contrib/ids/doc-files/testIds.xml,v
Existing Tags:
No Tags Exist
More information about the jdom-commits
mailing list