Skip to main content

newbie - jaxp dom is very low unless special feature is set

2 replies [Last post]
rtayek
Offline
Joined: 2005-01-02
Points: 0

hi, trying to parse valid xhtml 1.1. these take minutes apiece unleas i do a: factory.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
the echodom sample from the 1.4 has the same problem.
where are these features documented?
it would be nice to validate these docs as they are parsed.
is there a way to do this? can the dtd's and schemas be kept locally? (is that why it's so slow)
also, some entities (like ©) are being thrown away (or not found).
is there a mailing list or newsgroup for this?
thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
joehw
Offline
Joined: 2004-12-15
Points: 0

Did you mean DOMEcho? That's interesting. I just tried, at samples, ant compile and then ant DOMEcho. ant DOMEcho took "Total time: 0 seconds".
For your xhtml 1.1 file though, you might hit this issue: http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic.

rtayek
Offline
Joined: 2005-01-02
Points: 0