473,395 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Creating XML files using a given Schmea

I have a Schema from the folk that shows how they want the data received. I
have my own database that has that data, but in a different way (they use 33
freaking tables to store what I do in 1). Now then, do I:
a) Create a data source that jives with their schema (say, a number of views
or store procedure to represent those 33 tables, but gets it's data from my 1
table) and then create the XML file off of that or...
b) Read their Schema, seek out those elements that are of interest to me,
fill-in the data for these elements as I go and write it all to the XML file
or...
c) Do this in some other basic way that hasn't occurred to me, if so, what?
Nov 19 '05 #1
3 1485
Are you talking about a database schema or a XML schema (xsd) ?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 15 Feb 2005 10:45:02 -0800, Sindarian
<Si*******@discussions.microsoft.com> wrote:
I have a Schema from the folk that shows how they want the data received. I
have my own database that has that data, but in a different way (they use 33
freaking tables to store what I do in 1). Now then, do I:
a) Create a data source that jives with their schema (say, a number of views
or store procedure to represent those 33 tables, but gets it's data from my 1
table) and then create the XML file off of that or...
b) Read their Schema, seek out those elements that are of interest to me,
fill-in the data for these elements as I go and write it all to the XML file
or...
c) Do this in some other basic way that hasn't occurred to me, if so, what?


Nov 19 '05 #2
An XML Schema (xsd).

"Scott Allen" wrote:
Are you talking about a database schema or a XML schema (xsd) ?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 15 Feb 2005 10:45:02 -0800, Sindarian
<Si*******@discussions.microsoft.com> wrote:
I have a Schema from the folk that shows how they want the data received. I
have my own database that has that data, but in a different way (they use 33
freaking tables to store what I do in 1). Now then, do I:
a) Create a data source that jives with their schema (say, a number of views
or store procedure to represent those 33 tables, but gets it's data from my 1
table) and then create the XML file off of that or...
b) Read their Schema, seek out those elements that are of interest to me,
fill-in the data for these elements as I go and write it all to the XML file
or...
c) Do this in some other basic way that hasn't occurred to me, if so, what?


Nov 19 '05 #3
One solution is to generate code from the XML schema file.

The XSD.EXE tool from the .NET SDK can generate typed DataSets or a
set of classes that correspond to the schema. Creating the file can be
as easy as populating a typed DataSet and calling GetXml(). This
approach is not the best fit in all scenarios, so you'll have to give
it a try and see how easy it will be to develop and maintain in your
environment.

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Wed, 16 Feb 2005 08:03:03 -0800, Sindarian
<Si*******@discussions.microsoft.com> wrote:
An XML Schema (xsd).

"Scott Allen" wrote:
Are you talking about a database schema or a XML schema (xsd) ?

--
Scott
http://www.OdeToCode.com/blogs/scott/
On Tue, 15 Feb 2005 10:45:02 -0800, Sindarian
<Si*******@discussions.microsoft.com> wrote:
>I have a Schema from the folk that shows how they want the data received. I
>have my own database that has that data, but in a different way (they use 33
>freaking tables to store what I do in 1). Now then, do I:
>a) Create a data source that jives with their schema (say, a number of views
>or store procedure to represent those 33 tables, but gets it's data from my 1
>table) and then create the XML file off of that or...
>b) Read their Schema, seek out those elements that are of interest to me,
>fill-in the data for these elements as I go and write it all to the XML file
>or...
>c) Do this in some other basic way that hasn't occurred to me, if so, what?



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robin Tucker | last post by:
Hi there, I have a database on my test machine that will need to be installed on users machines. I would like to create the database with the given schema on the users machine and also with...
8
by: mcmg | last post by:
Hi, I have an asp app that works fine on a windows xp machine but does not work on a windows 2000 server. I have the following code in my global.asa: <OBJECT RUNAT=Server SCOPE=SESSION...
5
by: TJK | last post by:
I'm trying to create a Folder using Visual C++ in the Visual Studio ..NET environment. So far I haven't found a successful of doing this. The folder is to be created using a name given by the...
2
by: George Marsaglia | last post by:
I have a set of, say, 2000 points in the 8-dimensional simplex S={(x_1,x_2,...,x_8),x_1+x_2+...+x_8=1, x's>=0}. To help analyze that 8-dimensional set, I wish to project the set of points onto...
3
by: Stelrad Doulton | last post by:
Hi, I am having a strange problem on IIS 6.0. I am trying to create directories under a virtual directory on the fly to which I will upload files and retrieve these files later. I am having 2...
9
by: kermit | last post by:
I keep seeing that you can use the FileSystemObject in either VB script, or Javascript on an aspx page. I added a refrence to the scrrun.dll I added importing namespaces for 'System.Object',...
2
by: Tanmaya Kulkarni | last post by:
Hi, Since C# / VB.Net code executes on the server, all the path given during file creation point to physical path on server. Is there some mechanism where were can create text files on the...
6
by: 9GB | last post by:
How can I convert a static library ".a" file to a DLL file? I am using it with JNI. Writing methods in java and implementing in C and then converting it back to a DLL but i cant find out how to...
2
by: oswald.harry | last post by:
hi i am reading a set of jpeg files(RGB) and extracts the pixel values as longs.i want to create a 2d array with numof rows=numof images and numof cols=numof pixels in each image.ie each row of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.