[jdom-interest] Is beta-5 much slower than beta-4?
Roslan Amir
roslan at xybase.com
Thu Oct 19 00:16:50 PDT 2000
Jason Hunter wrote:
>So what I was thinking perhaps we do this:
>
>1) Have a ValidChecker which checks the document is "valid" against a
>DTD. This has always been planned, and I think it's a good idea. How
>it's going to work is we validate a document in one fell swoop instead
>of as the doc is created.
>
>2) Have a WellFormedChecker that checks the document is "well formed"
>per the specification, following the same approach. We check
>well-formedness in one fell swoop. It's not as nice because you have to
>ask for error checking, but it's simply unacceptable to require all
>content is checked. It's nice in theory but in the real world will
>involve people hacking up the API to remove that feature.
>
>I'll leave it open for discussion if we should do name checking on
>construction.
>
>What do people think?
Exactly what I have been looking for. Two methods that return a boolean
to check that the document is well-formed and to check that the document
is valid against a DTD. But instead of two methods, just one oveloaded
method:
public boolean isValid() // check that the document is "well formed"
public boolean isValid(String dtd) // check that the document is "valid"
against the given DTD
Roslan Amir.
More information about the jdom-interest
mailing list