[
Lists Home |
Date Index |
Thread Index
]
>> I think that if you really wanted to, you could get 99% of
>> this speed up anyway. Don't check the characters, check the
>> name against the DTD, and then only if it isn't declared
>> check the characters and then fake a declaration so it will
>> be quick next time.
>Then you are requiring a schema.
No, as I said, you fake a declaration for undeclared elements.
Something equivalent to <!ELEMENT foo ANY>. If you aren't doing any
kind of validation, it can just be a list of element names that
you've seen.
I doubt that it would make much difference. Looking up the name is
likely to take longer than checking that the characters are all name
characters.
-- Richard
|