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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:28:47+00:00 2026-05-29T10:28:47+00:00

I have found what I think is peculiar behavior in Android 3.x (Gingerbread) for

  • 0

I have found what I think is peculiar behavior in Android 3.x (Gingerbread) for the Android tablet. I have been able to recreate the issue on the Galaxy tab and on the emulator.

Other versions of the OS running the EXACT code work fine. Here’s the detail:

Document dom = db.parse(new InputSource(new StringReader(response)));
Element root = dom.getDocumentElement();
NodeList items = root.getElementsByTagName("root");  // this is the     org.w3c.dom.Element.getElementsByTagName

items.getLength()  >>>> is Always 0 on Android 3.x

But the expected list count on all other versions 2.1 and higher (obviously excluding 3.x versions) is returned.

The xml that is being parsed is:

xml sample

verbatim! Again, same exact source code works fine on Android versions 2.1, 2.2, 2.3 and 4.0 but NOT versions 3.0 or 3.1

Any suggestions, explanations or resolutions would are all very much appreciated!

  • 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-29T10:28:48+00:00Added an answer on May 29, 2026 at 10:28 am

    No one – really!

    I have found a consistent methodology that works for all versions of Android. One caveat, it requires you to develop your own xpath class:
    http://developer.android.com/reference/org/xmlpull/v1/XmlPullParserFactory.html

    I will continue to look for an xpath solution that works for all versions of the Android OS. If I find it, I will update this thread.

    Cheers
    Android Addict

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

Sidebar

Related Questions

I have found an interesting issue in windows which allows me to cause the
I think I have found a bug when setting or getting the Me.Top property
I think I may have found a bug in PHP's crypt() function under Windows.
I have found this code http://djangosnippets.org/snippets/2283/ but I think it doesn't work with manytomanyfields
I have found myself with at little problem, and I think a custom model
I have found the following post, which I think I may help because I
I have been doing some testing whilst using Jquery UI datepicker and have found
I have been reading about Active Record Associations on RailGuides and I have found
I have been working in a Government Project using EJBs . I have found
I have a peculiar issue I'm dealing with. I'll start off vague and 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.