Solved

Best Way to store Data in XML DOC

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CRM 2011 Ribbon Workbench vs RibbonDiffXml 44 258
Specific format 21 185
XSLT Help 12 28
XSL FO - text wrapping and empty spaces 1 26
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…
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…
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.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

863 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

24 Experts available now in Live!

Get 1:1 Help Now