Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7934677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:42:36+00:00 2026-06-03T21:42:36+00:00

I got sample code for weather forecast application from this link: http://www.anddev.org/viewtopic.php?t=361 and trying

  • 0

I got sample code for weather forecast application from this link:

http://www.anddev.org/viewtopic.php?t=361

and trying to run it on emulator but its showing the errors

I tried a lot to solve It but I couldnt

How to solve this?

In this line I got the errors

xr.parse(new InputSource(url.openStream()));

These are the logcat messages

  05-11 06:39:14.149: E/WeatherForcaster(709): WeatherQueryError
  05-11 06:39:14.149: E/WeatherForcaster(709):   
    org.apache.harmony.xml.ExpatParser$ParseException: At line 1, column 190: not well- formed (invalid token)
  05-11 06:39:14.149: E/WeatherForcaster(709): 
    at org.apache.harmony.xml.ExpatParser.parseFragment(ExpatParser.java:520)                                            
  05-11 06:39:14.149: E/WeatherForcaster(709):  
   at org.apache.harmony.xml.ExpatParser.parseDocument(ExpatParser.java:479)
      05-11 06:39:14.149: E/WeatherForcaster(709): 
        at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:318)
         05-11 06:39:14.149: E/WeatherForcaster(709):   
          at org.apache.harmony.xml.ExpatReader.parse(ExpatReader.java:275)    
        05-11 06:39:14.149: E/WeatherForcaster(709): 
         at  org.anddev.android.weatherforecast.Weatherforecast$1.onClick(Weatherforecast.java:74)                                                                                  
       05-11 06:39:14.149: E/WeatherForcaster(709):     
             at android.view.View.performClick(View.java:2485)
       05-11 06:39:14.149: E/WeatherForcaster(709): 
            at android.view.View$PerformClick.run(View.java:9080)
         05-11 06:39:14.149: E/WeatherForcaster(709):   
           at android.os.Handler.handleCallback(Handler.java:587)
            05-11 06:39:14.149: E/WeatherForcaster(709):    
             at android.os.Handler.dispatchMessage(Handler.java:92)
            05-11 06:39:14.149: E/WeatherForcaster(709):    
              at android.os.Looper.loop(Looper.java:123)
               05-11 06:39:14.149: E/WeatherForcaster(709): 
                at android.app.ActivityThread.main(ActivityThread.java:3683)    
               05-11 06:39:14.149: E/WeatherForcaster(709):     
                at java.lang.reflect.Method.invokeNative(Native Method)
     05-11 06:39:14.149: E/WeatherForcaster(709):   
               at java.lang.reflect.Method.invoke(Method.java:507)
         05-11 06:39:14.149: E/WeatherForcaster(709):   
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
      05-11 06:39:14.149: E/WeatherForcaster(709):  
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:42:36+00:00Added an answer on June 3, 2026 at 9:42 pm

    You may have problem with encoding of source XML.
    Try to set encoding of InputSource to UTF8.
    Here is an example:

        InputSource is = new InputSource(url.openStream());
        is.setEncoding("UTF-8");
        xr.parse(is);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got some sample code from the net here: http://www.javadb.com/sending-a-post-request-with-parameters-from-a-java-class That works fine. It
i got the sample code of bluetooth chat application.from here. is it possible to
I've got this sample code I got from somewhere around the web. My .h
I'm trying to run the sample code from this Sun tutorial: http://download.oracle.com/javase/6/docs/technotes/guides/rmi/hello/hello-world.html I've copied
I am using the fistdata global api, I got the sample code in php.
I just started the use of Mapkit Framework. I got a sample code from
I got this sample http://jfromaniello.blogspot.com/2010/04/event-aggregator-with-reactive.html , Which describe event aggregator pattern using .net 4.0
I've got this (incorrect) sample code for getting a value out of stringstream and
Hi friends I got sample code for Pane Manager from blackberry samples but when
I got this sample code. It works fine with all T-SQL code but if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.