Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Best Way to store Data in XML DOC

Posted on 2013-02-01
1
Medium Priority
?
163 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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 …
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

722 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