Solved

Best Way to store Data in XML DOC

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now