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

  • Home
  • SEARCH
  • 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 125697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:12:00+00:00 2026-05-11T05:12:00+00:00

I need to implement a Routing Table where there are a number of paramters.

  • 0

I need to implement a Routing Table where there are a number of paramters.

For eg, i am stating five attributes in the incoming message below

Customer Txn Group Txn Type Sender Priority  Target UTI       CORP     ONEOFF   ABC    LOW       TRG1 UTI       GOV      ONEOFF   ABC    LOW       TRG2 

What is the best way to represent this data in XML so that it can be queried efficiently.

I want to store this data in XML and using Java i would load this up in memory and when a message comes in i want to identify the target based on the attributes.

Appreciate any inputs.

Thanks, Manglu

  • 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. 2026-05-11T05:12:01+00:00Added an answer on May 11, 2026 at 5:12 am

    If you’re loading it into memory, it doesn’t really matter what form the XML takes – make it the easiest to read or write by hand, I would suggest. When you load it into memory, then you should transform it into an appropriate data structure. (The exact nature of the data structure would depend on the exact nature of the requirements.)

    EDIT: This is to counter the arguments made in comments by Dimitre:

    I’m not sure whether you thought I was suggesting that people implement their own hashtable – I certainly wasn’t. Just keep a straight hashtable or perhaps a MultiMap for each column which you want to use as a key. Developers know how to use hashtables.

    As for the runtime efficiency, which do you think is going to be more efficient:

    • You build some XSLT (and bear in mind this is foreign territory, at least relatively speaking, for most developers)
    • XSLT engine parses it. This step may be avoidable if you’re using an XSLT library which lets you just parameterise an existing query. Even so, you’ve got some extra work to do.
    • XSLT engine hits hashtables (you hope, at least) and returns a node
    • You convert the node into a more useful data structure

    Or:

    • You look up appropriate entries in your hashtable based on the keys you’ve been given, getting straight to a useful data structure

    I think I’d trust the second one, personally. Using XSLT here feels like using a screwdriver to bash in a nail…

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

Sidebar

Related Questions

No related questions found

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.