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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:16:53+00:00 2026-05-18T02:16:53+00:00

For parsing an xml response using TagSoup I am extending the DefaultHandler, now I

  • 0

For parsing an xml response using TagSoup I am extending the DefaultHandler, now I have the problem that it ignores an attribute with a qualified name in the method;

public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException 

The element looks as follows;

<element xmlns:ns2="http://my.ns.url">{content}</element>

when it gets to the startElement method for this element, the atts parameter has no attributes in it. Does anyone know how to fix this without adjusting the xml?

Edit
I tried using the setFeature method for the feature;

http://xml.org/sax/features/namespace-prefixes

But without any result

  • 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-18T02:16:54+00:00Added an answer on May 18, 2026 at 2:16 am

    I fixed it by stopping to use TagSoup, and resolved to the standard Android SAXParser. Then I changed feature settings as follows;

    setFeature("http://xml.org/sax/features/namespaces", false);    
    setFeature("http://xml.org/sax/features/namespace-prefixes", true);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using restkit and I have problems parsing an xml: Unable to find
I have done one program in android using xml parsing but there is an
I am using Soap Web services and get response in XML and that Response
I am parsing an XML API response with HTMLAgilityPack. I am able to select
I am parsing XML, with simplexml_load_string() , and using the data within it to
I am parsing xml file from server using xmlParser in Android. When i print
I have a question in parsing XML. How can I parse out the value
I've used following code for parsing XML file in c++. http://www.codeproject.com/Articles/176236/Parsing-an-XML-file-in-a-C-C-program . Now I
this is my first time using StAX for parsing XML documents (still in the
I have the following XML Parsing code in my application: public static XElement Parse(string

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.