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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:57:36+00:00 2026-06-17T20:57:36+00:00

How to define XML store in Dojo 1.8 API In old API we define

  • 0

How to define XML store in Dojo 1.8 API

In old API we define it something like this

var store = new dojox.data.XmlStore({url: "books.xml", rootItem: "book"});
var gotBooks = function(items, request){
  for(var i = 0; i < items.length; i++){
    var item = items[i];
    console.log("Located book: " + store.getValue(item, "title");
  }
}
var request = store.fetch({query: {isbn:"A9B57*"}, onComplete: gotBooks});
  • 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-06-17T20:57:38+00:00Added an answer on June 17, 2026 at 8:57 pm

    This is books.xml

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <books>
      <book>
          <isbn>1</isbn>
          <title>Title of 1</title>
          <author>Author of 1</author>
      </book>
      <book>
          <isbn>2</isbn>
          <title>Title of 2</title>
          <author>Author of 2</author>
      </book>
      <book>
          <isbn>3</isbn>
          <title>Title of 3</title>
          <author>Author of 3</author>
      </book>
      <book>
          <isbn>4</isbn>
          <title>Title of 4</title>
          <author>Author of 4</author>
      </book>
      <book>
          <isbn>5</isbn>
          <title>Title of 5</title>
          <author>Author of 5</author>
      </book>
      <book>
          <isbn>6</isbn>
          <title>Title of 6</title>
          <author>Author of 6</author>
      </book>
    </books>
    

    you can view this new API by using this code:

    <script type="text/javascript" src="web/dojo/dojo.js" data-dojo-config="async: true"></script>
    
    <script>
     require(["dojox/data/XmlStore"],
              function(XmlStore){
          var store = new XmlStore({url: "http://localhost:8080/DojoProject/book.xml", rootItem: "book"});
          var gotBooks = function(items, request){
            for(var i = 0; i < items.length; i++){
              var item = items[i];
              console.log("Located book: " + store.getValue(item, "title"));
            }
          }
          var request = store.fetch({query: {isbn:"1"}, onComplete: gotBooks});
    
              });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say in my web.xml file, I define a servlet like so: <url-pattern>/MyURL/*</url-pattern> How do
I would like to define and initialize some variables in web.xml and the access
How do I go about placing an object in a #define statement like this:
I am parsing a series of XML responses from a external data store. During
I'm trying to figure out how to store data in pre-defined xml files (the
How can I define underlined text in an Android layout xml file?
Is it possible to define two sections in the web.xml in order to catch
is there any way to define objects in hibernate.cfg.xml by scope and not one
I have define the following SCPD document for my UPnP device: <?xml version=1.0?> <scpd
I was planning to use an XML document to store configuration for my next

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.