473,473 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

New to XML, but has some intresting things to say..

Hi I am novice to XML, but I am excited abt XML. I have few queries

1. Can XML read the data from any database.

If yes, then

Suppose I have a MSAccess database and i have say some 5 tables.
Can I write a query to access say 200 records and display it in
IE.i.e. Internet Explorer.

So I can first establish conn. to database, then retirieve these rows
and display it in IE. that means can I use XML to display this in
IE..How this can be done ?

Can we take this message further ?

Cheers,
Gopal Srinivasan.
Jul 20 '05 #1
3 1350
Try : http://www.intsysr.com/odbc2xml.htm

You will also need a XS to transform the XML to HTML to be able to
display it is a browser.

In Peace,
Saqib Ali
http://validate.sf.net

Jul 20 '05 #2
gopal srinivasan wrote:
Hi I am novice to XML, but I am excited abt XML. I have few queries

1. Can XML read the data from any database.


No, _XML_ cannot do that. But you can use a programming language to
retrieve data from the database and produce some XML from that.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Jul 20 '05 #3
Hi Gopal,

creating xml from database depends on what the database can do for you
already.
We run MS SQLServer / IIS and use the FOR XML AUTO part of T-SQL a
lot.
I'm not sure whether MSAccess has similar support yet, but I can
imagine that microsoft has support in place here. In case I have some
time left I will make a trial.

Second thing is with IIS. It accepts so-called templates (a kind of
xml file with a query in it). See example below.

This is extremely convinient if you have to create some web output as
result of a whatever quey batch.
You just create a file like below and an xslt to make the HTML out of
the xml result set.

May be you should tell a bit more about your environment, because our
solution is quite specific for our smal intranet use.

Rolf

################################# example file
#######################

<?xml-stylesheet type="text/xsl"
href="\\etc.nec.de\xml\XML\XSLT\QsIsoLinks.xslt"?>
<QsIsoLinks xmlns:sql="urn:schemas-microsoft-com:xml-sql">
<Boxes>
<sql:header>
<sql:param name="Me">Etc</sql:param>
</sql:header>
<sql:query>
DECLARE @id int
SELECT @id=Employees_ID FROM smdb.dbo.Employees WHERE
UniqueLogin=@Me
SELECT md.* , BoxName , eo.ETCOrga_ID , eo.BelongsTo FROM
smdb.dbo.GetMyDepartmentBoxes(@id) md
INNER JOIN smdb.dbo.const_ETCOrga eo ON eo.ETCOrga_ID =
md.ETCOrga_ID FOR XML AUTO
</sql:query>
</Boxes>
<Links>
<sql:query>
SELECT lnk.* , dc.DocClasses_ID , dc.DocClass , dt.DocType FROM
smdb.dbo.QsIsoLinks lnk
LEFT JOIN smdb.dbo.const_DocClasses_tab dc On
lnk.DocClasses_ID=dc.DocClasses_ID
LEFT JOIN smdb.dbo.const_DocTypes_tab dt ON
lnk.DocTypes_ID=dt.DocTypes_ID
FOR XML AUTO
</sql:query>
</Links>
</QsIsoLinks>
######################## end ############################
go*********@gmail.com (gopal srinivasan) wrote in message news:<65**************************@posting.google. com>...
Hi I am novice to XML, but I am excited abt XML. I have few queries

1. Can XML read the data from any database.

If yes, then

Suppose I have a MSAccess database and i have say some 5 tables.
Can I write a query to access say 200 records and display it in
IE.i.e. Internet Explorer.

So I can first establish conn. to database, then retirieve these rows
and display it in IE. that means can I use XML to display this in
IE..How this can be done ?

Can we take this message further ?

Cheers,
Gopal Srinivasan.

Jul 20 '05 #4

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

Similar topics

12
by: Ryan Paul | last post by:
I've spent a lot of time using python, and personally, I feel like it is vastly superior when compared to languages like java, and c++, but there are still a few things that detract from its...
11
by: bearophile | last post by:
Hello, here are a four more questions (or suggestions) for the language (probably people have already discussed some of/all such things: I've seen the contracts for Python:...
383
by: John Bailo | last post by:
The war of the OSes was won a long time ago. Unix has always been, and will continue to be, the Server OS in the form of Linux. Microsoft struggled mightily to win that battle -- creating a...
32
by: tshad | last post by:
Can you do a search for more that one string in another string? Something like: someString.IndexOf("something1","something2","something3",0) or would you have to do something like: if...
0
by: Peter R. Vermilye | last post by:
I am involved on a web application that is using a third party set of APIs for remote database access (middleware). I've been brought in because of my background in programming, thus I'm new to...
14
by: CMM | last post by:
Do the developers of Visual 2005 actuall use it??? There's lots of great things in VS2005 (mostly related to the outstanding work done on the CLR)... but in general the LITTLE THINGS totally drag...
35
by: Steven T. Hatton | last post by:
Perhaps I'm just a bit frustrated, and I will soon realize the clear truth of the matter, but right now I have some serious misgivings about the value of investing a lot of time and effort into...
75
by: Steven T. Hatton | last post by:
No, this is not a troll, and I am not promoting Java, C-flat, D, APL, Bash, Mathematica, SML, or LISP. A college teacher recently posted to this newsgroup regarding her observation that there has...
13
by: TSB | last post by:
Hi everyone, I think algorithm is very important for every computer language. But I don't know another important things. I am newbie to computer languages, so anyone can tell me what the most...
5
by: yassu | last post by:
some new intresting c programs visit http://cpp4students.blogspot.com/
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
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...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.