Solved

Best Way to store Data in XML DOC

Posted on 2013-02-01
1
160 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 36

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RSS Feed Enclosure URL 1 164
Create XML 5 52
XML XSL Message 3 34
CFML - <CFIF structKeyExists(node, "field")> is returning "NO" consistently and incorrectly? 3 22
The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

685 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