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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:06:24+00:00 2026-05-15T20:06:24+00:00

I am ExtJS for GUI development. I am using XML Store for retrieving the

  • 0

I am ExtJS for GUI development. I am using XML Store for retrieving the data from server.

My XML looks like this.

<meta>
 <entry>x</entry>
 <entry>Y</entry>
</meta>
<data>
  <value>100</value>
  <value>500</value>
 </data>

Where X=100 and Y=500

How do i retrieve the data and value from this using XMLStore?

  • 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-15T20:06:24+00:00Added an answer on May 15, 2026 at 8:06 pm

    Since the XML structure is not really suitable for what the XML Store/Reader expect, I suggest you parse the XML yourself into a more standard format and then load the data to a JsonStore for example.

    Parsing code: (wrote it off the top of my head, so might need some adjustments …)

    var data = [];
    var q = Ext.DomQuery;
    var entries = q.select('meta > entry', theXML);
    var values = q.select('data > value', theXML);
    for (var i = 0; i < entries.length; ++i) {
        var recordData = {
            entry: entries[i].firstChild.nodeValue,
            value: values[i].firstChild.nodeValue
        }
        data.push(recordData);
    }
    

    Hope it will be useful to you …

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

Sidebar

Related Questions

In extjs, if I have a grid definition like this: xtype: 'grid', store: 'someStore',
in extjs 3.3.0, i can do that like this var row = grid.getView().getRow(0); var
My extjs store is not loaded even if the server reutrns a correct json
(ExtJS 4.0.7) I'm using Model.save() to PUT an update to a server. Everything works
ExtJS version is ext-4.0.7-gpl . When syncing a Store, the server returns me the
So I declare an ExtJS radio button object like this: .AddExtObject({xtype:'radiogroup', ref:'../AndOr', defaults:{name:'rdo-payee2'}, width:120,
I'm trying out ExtJS Pivot Grid. I'm using the examples pretty much as-is from
I am using extjs version 3.4 and I am getting one error in this
ExtJS Charts, I am using an Ext column chart and I want to implement
ExtJS 1.7.3 on FF 3.6 ² keeps stopping on this line 9863, every time

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.