Hello Frank,

Thanks for your answer my problem is exactly that.. i'm get data from
the db and the data are encode in latin-1 but int the xml generated
don't say that.

So my problem is solved.

jotobjects and Frank thanks for all.

Greetings,
Estiven Restrepo

On Dec 26, 12:34 am, Frank Weiss <[email protected]> wrote:
> Could you be more specific about how the program crashes? I can give two
> possible causes for you to investigate.
>
> Is the document you are trying to parse encoded in Latin-1 (same as
> ISO-8859-1) or in UTF-8? This must also be specified in the HTTP header
> (Content-type: text/xml; charset=UTF-8) or in the XML document declaration
> (<?XML version=1.0" encoding="UTF-8"?>). If the SAXParser tries to decode in
> a different way, it won't work.
>
> If you put character entities, such as &#x00D2; in a CDATA section, I'm not
> sure how the SAXParser will deal with that.
>
> On Fri, Dec 25, 2009 at 9:14 PM, estivenrpo <[email protected]> wrote:
> > 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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en

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