[jdom-commits] CVS update: jdom/src/java/org/jdom/input
cvs at jools.org
cvs at jools.org
Tue Feb 5 00:03:18 PST 2002
Date: Tuesday February 5, 2002 @ 3:03
Update of /home/cvspublic/jdom/src/java/org/jdom/input
In directory jools.org:/tmp/cvs-serv25738/input
Incorporating a great patch from elharo. In his words...
Here's the diffs for the changes. They don't seem to break anything
that wasn't broken before. Mostly this adds verification of the
system and public IDs in both DocType and EntityRef, the root element
name in DocType, and the entity name in EntityRef. Failing these
causes the throwing of various runtime exceptions
(IllegalDataException and IllegalNameexception) so this shouldn't
break anybody's code.
It also allows null to be used for either system or public IDs in
DocType to differentiate a missing ID from the empty string. This
necessitated some small changes in some input and output classes.
I added one new Constructor to EntityRef to allow it to have a system
ID without a public ID.
I also added a setElementName() method in DocType.
I added checkSystemLiteral() and checkPublicID() methods in Verifier.
I made checkXMLName() in Verifier public so EntityRef and DocType
could use it. (They do allow colons in their names which
checkElementName() forbids.) I don't think this will cause a problem,
but if it does it could be package private.
Finally I fixed a few small errors I noticed in the doc comments here
The only thing I didn't take was the change that allowed colons in XML
element names, since I'm thinking that probably causes more problems
than it solves. I left elharo's comment in there, and we can always
make the one-line change later after the j-i discussion on the issue.
File: no file DOMBuilder.java Status: Needs Checkout
Working revision: 1.40 Tue Feb 5 08:03:18 2002
Repository revision: 1.40 /home/cvspublic/jdom/src/java/org/jdom/input/DOMBuilder.java,v
jdom_prefilter (revision: 1.37)
jdom_1_0_b7 (revision: 1.36)
jdom_1_0_b6 (revision: 1.24)
start (revision: 18.104.22.168)
jdom (branch: 1.1.1)
File: no file SAXHandler.java Status: Needs Checkout
Working revision: 1.33 Tue Feb 5 08:03:18 2002
Repository revision: 1.33 /home/cvspublic/jdom/src/java/org/jdom/input/SAXHandler.java,v
jdom_prefilter (revision: 1.27)
jdom_1_0_b7 (revision: 1.18)
More information about the jdom-commits