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 3459384
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:05:59+00:00 2026-05-18T10:05:59+00:00

I am parsing a weather data feed and it works with certain locations but

  • 0

I am parsing a weather data feed and it works with certain locations but errors out with this message on some locations:

09-22 10:40:33.364: WARN/System.err(3347): org.apache.harmony.xml.ExpatParser$ParseException: At line 465, column 29: not well-formed (invalid token)

Any ideas what might be happening?

Here is a snippet of the xml:

                <hour time="11 AM">
                    <url>http://www.....</url>
                    <obsdate>9/22/2010</obsdate>
                    <txtshort>Parcialmente soleado</txtshort>
                    <weathericon>03</weathericon>
                    <temperature>26</temperature>
                    <feelslike>29</feelslike>
                </hour>

                <hour time="12 PM">
                    <url>http://www.....</url>
                    <obsdate>9/22/2010</obsdate>
                    <txtshort>Parcialmente soleado</txtshort>
                    <weathericon>03</weathericon>
                    <temperature>26</temperature>
                    <feelslike>29</feelslike>
                </hour>

Line 465 is the ‘hour’ tag with the 12pm attribute value. I have logged parse code and it is reading the xml up until it reaches this line.

  • 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-05-18T10:06:00+00:00Added an answer on May 18, 2026 at 10:06 am

    This actually turned out to be an unrecognized character in parsing an XML document. What I did to fix this was to include the encoding type like this: (choose the encoding that matches your XML document)

    InputSource inputSource = new InputSource(is);
    //inputSource.setEncoding("iso-8859-1");
    inputSource.setEncoding("utf-8");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing a JSON response from a weather feed and the data I receive
Parsing the string message seems bad. Or was this exception not meant to be
I'm parsing a date from a JSON event feed - but the date shows
I am currently trying to parse some xml data into an NSDictionary . This
Parsing works great. -(void) callParse { parser = [[NSXMLParser alloc] initWithData:data]; parser.delegate = self;
When parsing an xml file in android, I'm doing like this: try { InputStream
Im parsing the source of a website and Im using this regex: /page\.php\?id\=([0-9]*)\\>(.*)\<\/a\>\<\/span\>/.match(self.agent.page.content) self.agent.page.content
Not parsing the parameters in the beginning but parse the input string read from
Parsing binary sums / products are easy, but I'm having troubles defining a grammar
This is a simplified example, but I am working on a code translator that

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.