Ok, perfect, thanks for the answer, but this option is needed to parse character data (CDATA), or not?
I have an application and it use a RSS in spanish, so when the program read a no standard character the program crash, so I'm trying to fix it.. any idea? Thanks, On Dec 25, 8:42 pm, jotobjects <[email protected]> wrote: > 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

