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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:52:05+00:00 2026-05-16T22:52:05+00:00

Hi BB developers I have a issue while parsing the xml data using DOM.

  • 0

Hi BB developers I have a issue while parsing the xml data using DOM. The xml data format is:

<stimulus name="Question" type="0">
<card>
<no>1</no>
<text><![CDATA[What is your primary goal, challenge or problem?]]></text>
</card>-----------------------
<stimulus name="Noun" type="0">
<card>
<no>12</no>
<text><![CDATA[Evaluation Criteria]]></text>
</card>

The following code snippet is used to parse the data

    NodeList nl = element.getElementsByTagName("stimulus");

    if (nl != null && nl.getLength() > 0) {
        for (int i = 0; i < nl.getLength(); i++) {
            Element ele = (Element) nl.item(i);
            Data card = getQuestions(ele);
            dataList.addElement(card);
        }
    }

When I parse the data by using root tag “stimulus” I don’t get the data sequentially. I need to parse the data sequentially. Where did I make a mistake?

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

    It looks like the <stimulus> elements are not closed in your source document, which may be causing problems in the parser. Try adding a </stimulus> to end each group.

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

Sidebar

Related Questions

hello fellow java developers. I'm having a bit of an issue here. I have
We have developers using Visual Studio 2010 professional and some trying out Visual Studio
I'm working on a large project with many developers. We have 2 pages using
I have seen a few design where the developers have defined very long values
We have just recently got our SVN server installed. My developers have added the
Here's a problem. Developers have some kind of a task (develop certain feature), which
I'm starting a .NET project and my developers have their own laptops. How can
We have developers working in different geographic locations and we want to set up
We have three developers and one tester all working against the same database. We
I am working on a web site with several other developers and we have

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.