Hi,
I need to validate XML files with DTD. I use this code :

SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
XMLReader analyser = sp.getXMLReader();
analyser.setFeature("http://xml.org/sax/features/validation";, true);
analyser.setErrorHandler(handler);
analyser.parse(path);

I have this error message :
Cannot enable http://xml.org/sax/features/validation

How can I fix it ?

Thx.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to