Solved

Best Way to store Data in XML DOC

Posted on 2013-02-01
1
159 Views
Last Modified: 2013-02-03
I am looking for an Idea how to best store following data in XML so it can be easily read.
Background, i have an app which has api and each api has functions and the functions require parameters and values when they are called. So i am trying to build a test client who has the following hierarchy

<api>
  <function>
      <parm><value><required>
      <parm><value><required>
  </function>
<function>
      <parm><value><required>
      <parm><value><required>
  </function>
</api>
<api>
  <function>
      <parm><value><required>
      <parm><value><required>
  </function>
<function>
      <parm><value><required>
      <parm><value><required>
  </function>
</api>

Open in new window

0
Comment
Question by:AlexPonnath
1 Comment
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 38846334
How are you planning to read the xml?
Are the parameters simple types (int, string) or objects(classes)?
Are you planning to call the method with this parameters and check if the result is OK?
For functions I will have: (Assuming you are using simple types and no result needed.
 <function name="MyMethodName">
     <param>
              <type>
             <value>
     </param>
      <param>
             <type>
             <value>
      </param>
</function>

Open in new window


The method should know whether a parameter is required.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Removing information on Duplicate XML Nodes 24 77
XML to Excel using XSL - formatting 3 32
SQL XML ALL Nodes Compare in function 2 27
XSLT -  replace invalid xml characters 15 34
The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question