That error says that Android does not support a validating SAX parser
(does not validate documents with DTD).  So you have to  remove the
"spf.setValidating(true); " statement.

I went looking for the source for
javax.xml.parsers.SAXParserFactory.java but don't know where in
android.git to find the source for the java.* and javax.* packages -
anybody know where that is?

Also note android.util.Xml is useful for XML processing -

http://developer.android.com/intl/zh-CN/reference/android/util/Xml.html

On Dec 25, 1:17 pm, estivenrpo <[email protected]> wrote:
> Hi
>
> I'm try to parse character data (CDATA) whit SAX Parser.
>
> I support in this code for that:
>
> http://www.java2s.com/Code/Java/XML/AccessingcharacterdataCDATAofXMLe...
>
> but when i use it in android (SDK 1.5) I get the next message:
>
> W/System.err(  482): javax.xml.parsers.ParserConfigurationException:
> No validating SAXParser implementation available
>
> W/System.err(  482):    at
> org.apache.harmony.xml.parsers.SAXParserFactoryImpl.newSAXParser
> (SAXParserFactoryImpl.java:77)
> W/System.err(  482):    at
> com.whizzesforlife.UrlRequestHandler.getParsedData
> (UrlRequestHandler.java:32)
>
> And the in the UrlRequestHandler.java:32 i can read:
>
> 31       spf.setValidating(true);
> 32       SAXParser sp = spf.newSAXParser();
>
> Can I include an special .jar library or something in order to add the
> implementation required to to that?
>
> Thanks in advance

-- 
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