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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:36:10+00:00 2026-05-26T22:36:10+00:00

I discovered an issue with android emulator versions 2.1 and less; specifically, I tested

  • 0

I discovered an issue with android emulator versions 2.1 and less; specifically, I tested it on the android emulator, versions 1.5, 1.6, and 2.1. I thought that early android versions did not have full or any support for jQuery or ajax, which sounds idiotic to say, but I didn’t realize it was picky about the XML file structure. Each of my XML files start with the following XML declaration:

<?xml version="1.0" encoding="Shift-JIS"?>

Now, Android 2.3.3 and greater and iOS have no issues. Perhaps Android 2.2 may have issues, but I don’t see it available in the SDK Manager for Android.

If I take this XML declaration out of an XML file, these early Android version loads the XML file.

Does not work:

<?xml version="1.0" encoding="Shift-JIS"?>
<test>Hello World</test>

Works:

<test>Hello World</test>

I tried it using both jQuery.ajax() and XMLHttpRequest and the results above hold.

    $.ajax({type: "GET", "test.xml": url, cache: false, async: false});

The question is why is it that these early versions of android cannot parse the XML structure with the XML declaration? Perhaps, an android 1.5 device can parse it, but I cannot verify that. I can only verify these versions of android emulator have serious issues with XML declarations in an XML file.

I’m hoping there’s a workaround and would appreciate any help.

Thank you.

  • 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-26T22:36:10+00:00Added an answer on May 26, 2026 at 10:36 pm

    The XML declaration is not actually needed for valid XML. But it does allow you to define the encoding used in the file. I don’t have access the sources currently but I bet the if you were to change the encoding defined in the declaration to UTF-8 or ISO-8859-1 that it will parse the XML just fine. I have been able to parse XML with Android using the UTF-8 encoding.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

While debugging an issue with our system, I have discovered a thread contention that
I have discovered a few issues with ListViews in Mono for Android that may
We are currently migrating from PHP4 to PHP5 and have discovered an issue. In
I have discovered an issue when trying to store a lot of keys using
On further investigation I have discovered that there is something in my CSS that
I am having an issue that make me crazy I have a listview with
Having an issue with a Windows service that needs to monitor/have access to a
I recently discovered a pretty big performance issue in my app that was due
I discovered very interested issue with XamDataGrid LoadCustomizations method. At start program I initialize
I have discovered some issues in my program. I was using log4j for logging,

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.