473,385 Members | 1,930 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,385 software developers and data experts.

Why Use XML while Schema is same ??

Hi
I have read about XML and its use for transferring data. I have alot
of mis conceptions. Let's take an example
I have database at two locations L1 and L2, both locations are using
different DBMSs but having same schema(datatypes and other rules). If
i want to transfer data from L1 to L2, it 's not a web based
application. More precisely, i would make connection with L2 and will
request data through SQL query into the recordset. Would using XML
make any sense here that first the data will be converted into xml
from L2 and then this XML will be sent to L1, then L1 will retrieve
the data from XML file, why not directly transfer the data?? If i
would have different Schemas on L1 and L2, how XML will work here??
please clear my concepts, if don't have time try to give suggestions
atleast.
Thanks
Jul 20 '05 #1
1 1287
In article <3c**************************@posting.google.com >,
Atif <at*******@hotmail.com> wrote:

% I have database at two locations L1 and L2, both locations are using
% different DBMSs but having same schema(datatypes and other rules). If
% i want to transfer data from L1 to L2, it 's not a web based
% application. More precisely, i would make connection with L2 and will
% request data through SQL query into the recordset. Would using XML
% make any sense here that first the data will be converted into xml

If you are writing the software that connects to L1 and the software
that connects to L2, then there's nothing to be gained from using XML in
this process. You might as well use the data structures and message
structures that are most efficient and have a promotion strategy which
keeps both pieces of software in synch (assuming it's more than one
program).

If you have different people writing the software for L1 than are
writing the software for L2, then you need to agree on the way you'll
encode the data when handing it off. XML provides a framework which will
make this simpler. That is, rather than saying `a message begins with a
10 byte header of which the first four bytes are the length as a two's
complement integer in network byte order ...' you can say `a message is
an XML document with the following elements ...' and never worry about
they syntactic details.

It doesn't make any difference whether the schemas are the same or
different. In general, you'll have both situations, and will need to
handle both within a single application. I'm not convinced that XML
makes it easier to define the mappings between two structures, but you
can use XSLT if your data is XML, and you can't use XSLT if your data is
not XML.

There are canned applications for performing this kind of operation.
--

Patrick TJ McPhee
East York Canada
pt**@interlog.com
Jul 20 '05 #2

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

Similar topics

1
by: Gregg Williams | last post by:
Hi--I am having a problem designing a schema to fit my XML data, and I'm hoping that someone can help. Essentially, I have a schema in mind and two target vocabularies for it, where one vocabulary...
3
by: Kimmo J?rvikangas | last post by:
Dear XML (Schema) experts, As an example I have the following schema: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"...
4
by: Gordon Dickens | last post by:
I have target xml to generate from schema. All of the XML instances have the same global element i.e. <base>. I would like to combine all of the schemas into a single schema where I could...
0
by: Rajesh Jain | last post by:
I Have 2 separate schemas. --------------Schema 1 is defined as below----------- <xs:schema targetNamespace="http://Schemas/1" xmlns="http://Schemas/1" xmlns:xs="http://www.w3.org/2001/XMLSchema"...
4
by: Iain A. Mcleod | last post by:
Hi I'm stuck with the following schema validation problem in VS.NET 2003: I have two types of xml document and related schema: project and projectCollection. A projectcollection is just a set...
0
by: Sean | last post by:
Hello, I have the following scenario. I hope someone may help me on this: I have an ASP.NET web-application that create .xml files according to a defined schema and they are sent out to our...
1
by: billa1972 | last post by:
Hi, I am trying to hook into Yellow Freight's rating webservice. Below is the wsdl. When i try and create a proxy file with wsdl.exe i get the following errors, see below. Also, when i...
5
by: Jeff | last post by:
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA side create XML schemas with various entities in...
5
by: hello | last post by:
How can I define the schema so that myage element has to be double or null? <xs:simpleType name="myage"> <xs:restriction base="xs:double"> <xs:enumeration value="null"/> </xs:restriction>...
9
by: mstilli | last post by:
Hi, I am trying to use schema for server side validation using xerces to catch the validation errors. validating this XML: <Content4> <textarea13></textarea13>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.