473,657 Members | 2,934 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can anyone tell me what MS XML is used for?

XML seems to be a hot technology buzzword. And it appears XML is
supported in A2003.

I am wondering if it could be used in the following scenario. I create
an order record for the customer. This customer is one I do a lot of
business with. I could create an email to send him a copy of the order.
A more preferable approach would be to transfer to the customer the
order and order items parts which could then be imported/used to update
their database system.

Is that possible with XML?
Jan 21 '07 #1
14 3733
Hi, Salad.
Is that possible with XML?
Yes. However, most folks use CSV files to transfer the data, 'cause it's
even simpler and takes less bandwidth.

HTH.
Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blog: http://DataDevilDog.BlogSpot.com
http://www.Access.QBuilt.com/html/ex...ributors2.html for contact
info.
"salad" <oi*@vinegar.co mwrote in message
news:5t******** ***********@new sread3.news.pas .earthlink.net. ..
XML seems to be a hot technology buzzword. And it appears XML is
supported in A2003.

I am wondering if it could be used in the following scenario. I create an
order record for the customer. This customer is one I do a lot of
business with. I could create an email to send him a copy of the order. A
more preferable approach would be to transfer to the customer the order
and order items parts which could then be imported/used to update their
database system.

Is that possible with XML?

Jan 21 '07 #2
rkc
salad wrote:
XML seems to be a hot technology buzzword. And it appears XML is
supported in A2003.

I am wondering if it could be used in the following scenario. I create
an order record for the customer. This customer is one I do a lot of
business with. I could create an email to send him a copy of the order.
A more preferable approach would be to transfer to the customer the
order and order items parts which could then be imported/used to update
their database system.

Is that possible with XML?
Since the advent of ADODB you have been able to save a recordset
to a file and email it to someone to be reopened as a recordset
on their end. The format used to save the recordset is xml.
Jan 21 '07 #3
rkc wrote:
salad wrote:
>XML seems to be a hot technology buzzword. And it appears XML is
supported in A2003.

I am wondering if it could be used in the following scenario. I
create an order record for the customer. This customer is one I do a
lot of business with. I could create an email to send him a copy of
the order. A more preferable approach would be to transfer to the
customer the order and order items parts which could then be
imported/used to update their database system.

Is that possible with XML?


Since the advent of ADODB you have been able to save a recordset
to a file and email it to someone to be reopened as a recordset
on their end. The format used to save the recordset is xml.
I probably gave a poor example, rkc. I was thinking more on the lines
of an debit card transaction. I go to a store, select an item to
purchase. I swipe my card, answer a couple of questions (in my
situation I could pass those as parameters to the "bank"), the bank
processes the request, and returns a string of data the tells the store
I've been approved, etc.

Emails would add a layer of complexity to the issue. Maybe not so
complex but adds a layer where the person has to go into the email and
perhaps save the email or attachment to a folder for processing.

A CSV file, like Gunny mentioned, would be just fine. I'd prefer to
have a communication thread with the computer with little to none in the
way of user intervention.
Jan 21 '07 #4
salad <oi*@vinegar.co mwrote in
news:cp******** ***********@new sread4.news.pas .earthlink.net:
Emails would add a layer of complexity to the issue. Maybe not so
complex but adds a layer where the person has to go into the email
and perhaps save the email or attachment to a folder for
processing.

A CSV file, like Gunny mentioned, would be just fine. I'd prefer
to have a communication thread with the computer with little to
none in the way of user intervention.
Look into examples of using the MS XML libraries. This can allow you
to post and retrieve data directly to and from a web page (assuming
there's a script on the web page to handle the transaction and
return the desired results). If I'm remembering correctly, Douglas
Steele has done quite a bit with this and published articles
explaining how it's done. I haven't done it myself, but I'm going to
implement my first such project using it in the next month or so.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jan 22 '07 #5
David W. Fenton wrote:
salad <oi*@vinegar.co mwrote in
news:cp******** ***********@new sread4.news.pas .earthlink.net:

>>Emails would add a layer of complexity to the issue. Maybe not so
complex but adds a layer where the person has to go into the email
and perhaps save the email or attachment to a folder for
processing.

A CSV file, like Gunny mentioned, would be just fine. I'd prefer
to have a communication thread with the computer with little to
none in the way of user intervention.


Look into examples of using the MS XML libraries.
Hi David:
Appreciate your POV. Are you referring to Access help? Or an MS KB
article?

This can allow you
to post and retrieve data directly to and from a web page (assuming
there's a script on the web page to handle the transaction and
return the desired results). If I'm remembering correctly, Douglas
Steele has done quite a bit with this and published articles
explaining how it's done. I haven't done it myself, but I'm going to
implement my first such project using it in the next month or so.
I wish you success and maybe you will share your experiences.

Maybe I'm approaching this wrong. I'll provide another example.

I use Norton Anti-virus. I can open up Norton and check to see if there
are new virus definitions. It will return to my computer the newest
definitions if they exist.

A better example tho would be using the web site. Let's say I have a
quotes system. I open up a web page at HandBagsRUs.com for their
catalog. If needed, I could pass to it username/password to it. At
that time the system knows who I am, who my salesperson is at the
company, what discount rates I get, etc.

I go an select the handbags I want to order and sell. Once I have made
my selections, perhaps by adding them to a shopping cart, I submit my
request for those items, maybe specify this is a quote or PO.

The computer over at HandBagsRUs.com churns away for a second or two and
now has my quote. It can return the results to the web page. I really
don't want that. What I would like is the electronic results be sent to
my computer...if that is possible.

Maybe the results could be returned to me via FTP? Would that be a
better solution?

It would be great if the results could simply be dumped on my computer
and my program could parse the results out.

Some web sites do something "close". The quote might be generated and
then reside at the vendors site. This is pretty much useless. They can
have our quote on their machine but I want the quote on my machine as well.

So I am looking for a communcation from the vendor I can use to update
my application. I believe XML is used to communicate between computers
and was wondering if it could be used in a manner I described. If FTP
is a more doable option that would be great too.


Jan 22 '07 #6
>So I am looking for a communcation from the vendor I can use to update my
>application.
Are you looking to build some kind of "live update" mechanism so your
application can retrieve updates over the web? If so, then why didn't
you just say that from the outset?
>I believe XML is used to communicate between computers and was
wondering if it could be used in a manner I described. If FTP is a
more doable
option that would be great too.

Now you are starting to discuss apples and oranges.

XML is a file format, as is CSV. CSV is simpler and more compact but it
also corresponds to just a single table. XML is more complex but is
also more flexible in that it can describe parent/child relationships
in data, e.g.

<?xml version="1.0" encoding="UTF-8" ?>
<Document>
<Purchase_Order >
<PO_Number>1000 0</PO_Number>
<PO_Line_Item >
<Item_Number> 1</Item_Number>
<SKU>FOO123</SKU>
<Quantity>3</Quantity>
</PO_Line_Item>
<PO_Line_Item >
<Item_Number> 2</Item_Number>
<SKU>BAR234</SKU>
<Quantity>5</Quantity>
</PO_Line_Item>
</Purchase_Order>
<Purchase_Order >
<PO_Number>1000 1</PO_Number>
<PO_Line_Item >
<Item_Number> 1</Item_Number>
<SKU>BAZ345</SKU>
<Quantity>21</Quantity>
</PO_Line_Item>
</Purchase_Order>
</Document>
FTP is a transfer protocol, as is HTTP. Both protocols can transmit
data in different formats (such as CSV, XML, HTML, ...).

salad wrote:
David W. Fenton wrote:
salad <oi*@vinegar.co mwrote in
news:cp******** ***********@new sread4.news.pas .earthlink.net:

>Emails would add a layer of complexity to the issue. Maybe not so
complex but adds a layer where the person has to go into the email
and perhaps save the email or attachment to a folder for
processing.

A CSV file, like Gunny mentioned, would be just fine. I'd prefer
to have a communication thread with the computer with little to
none in the way of user intervention.

Look into examples of using the MS XML libraries.

Hi David:
Appreciate your POV. Are you referring to Access help? Or an MS KB
article?

This can allow you
to post and retrieve data directly to and from a web page (assuming
there's a script on the web page to handle the transaction and
return the desired results). If I'm remembering correctly, Douglas
Steele has done quite a bit with this and published articles
explaining how it's done. I haven't done it myself, but I'm going to
implement my first such project using it in the next month or so.
I wish you success and maybe you will share your experiences.

Maybe I'm approaching this wrong. I'll provide another example.

I use Norton Anti-virus. I can open up Norton and check to see if there
are new virus definitions. It will return to my computer the newest
definitions if they exist.

A better example tho would be using the web site. Let's say I have a
quotes system. I open up a web page at HandBagsRUs.com for their
catalog. If needed, I could pass to it username/password to it. At
that time the system knows who I am, who my salesperson is at the
company, what discount rates I get, etc.

I go an select the handbags I want to order and sell. Once I have made
my selections, perhaps by adding them to a shopping cart, I submit my
request for those items, maybe specify this is a quote or PO.

The computer over at HandBagsRUs.com churns away for a second or two and
now has my quote. It can return the results to the web page. I really
don't want that. What I would like is the electronic results be sent to
my computer...if that is possible.

Maybe the results could be returned to me via FTP? Would that be a
better solution?

It would be great if the results could simply be dumped on my computer
and my program could parse the results out.

Some web sites do something "close". The quote might be generated and
then reside at the vendors site. This is pretty much useless. They can
have our quote on their machine but I want the quote on my machine as well.

So I am looking for a communcation from the vendor I can use to update
my application. I believe XML is used to communicate between computers
and was wondering if it could be used in a manner I described. If FTP
is a more doable option that would be great too.
Jan 22 '07 #7
Gord wrote:
>>So I am looking for a communcation from the vendor I can use to update my
application .


Are you looking to build some kind of "live update" mechanism so your
application can retrieve updates over the web?
Live would be fine. I don't know if it is possible.
If so, then why didn't you just say that from the outset?
If one doesn't know exactly what to ask...
>
>>I believe XML is used to communicate between computers and was
wondering if it could be used in a manner I described. If FTP is a
more doable option that would be great too.

Now you are starting to discuss apples and oranges.

XML is a file format, as is CSV. CSV is simpler and more compact but it
also corresponds to just a single table. XML is more complex but is
also more flexible in that it can describe parent/child relationships
in data, e.g.

<?xml version="1.0" encoding="UTF-8" ?>
<Document>
<Purchase_Order >
<PO_Number>1000 0</PO_Number>
<PO_Line_Item >
<Item_Number> 1</Item_Number>
<SKU>FOO123</SKU>
<Quantity>3</Quantity>
</PO_Line_Item>
<PO_Line_Item >
<Item_Number> 2</Item_Number>
<SKU>BAR234</SKU>
<Quantity>5</Quantity>
</PO_Line_Item>
</Purchase_Order>
<Purchase_Order >
<PO_Number>1000 1</PO_Number>
<PO_Line_Item >
<Item_Number> 1</Item_Number>
<SKU>BAZ345</SKU>
<Quantity>21</Quantity>
</PO_Line_Item>
</Purchase_Order>
</Document>

FTP is a transfer protocol, as is HTTP. Both protocols can transmit
data in different formats (such as CSV, XML, HTML, ...).
I guess I'm approaching this as someone not conversant in the subject.
If I were an expert I wouldn't be asking.

I want to be able to select the items to order from a web site, submit
my request, and have the results returned to me. I care not if it is
FTP/HTTP at this point, I want to know if what I would like to do is
possible. The file returned can be in CSV, Excel, XLM formats, that
makes no difference to me at this point. I would prefer the results of
a downloadable file, IOW link, not be returned to me in a web page
because of the file/open dialog box hassles of just getting to the
folder to store it in.

Currently I get on a computer site, search around it selecting items I
want to buy. I know the computer can send me back results but when I'm
sitting in front of a browser I get results back as a html page. A
formatted web page of results is not what I want. I want the results on
my computer. Some folk say screen scraping is the way to go. To me
that seems ill advised.

I know that I will need to work with/ask the vendor's web/IT staff to do
something like this...if it's possible. I know the technology exists,
just not sure how it's implemented.

>
salad wrote:
>>David W. Fenton wrote:

>>>salad <oi*@vinegar.co mwrote in
news:cp***** **************@ newsread4.news. pas.earthlink.n et:

Emails would add a layer of complexity to the issue. Maybe not so
complex but adds a layer where the person has to go into the email
and perhaps save the email or attachment to a folder for
processin g.

A CSV file, like Gunny mentioned, would be just fine. I'd prefer
to have a communication thread with the computer with little to
none in the way of user intervention.
Look into examples of using the MS XML libraries.

Hi David:
Appreciate your POV. Are you referring to Access help? Or an MS KB
article?

This can allow you
>>>to post and retrieve data directly to and from a web page (assuming
there's a script on the web page to handle the transaction and
return the desired results). If I'm remembering correctly, Douglas
Steele has done quite a bit with this and published articles
explaining how it's done. I haven't done it myself, but I'm going to
implement my first such project using it in the next month or so.

I wish you success and maybe you will share your experiences.

Maybe I'm approaching this wrong. I'll provide another example.

I use Norton Anti-virus. I can open up Norton and check to see if there
are new virus definitions. It will return to my computer the newest
definitions if they exist.

A better example tho would be using the web site. Let's say I have a
quotes system. I open up a web page at HandBagsRUs.com for their
catalog. If needed, I could pass to it username/password to it. At
that time the system knows who I am, who my salesperson is at the
company, what discount rates I get, etc.

I go an select the handbags I want to order and sell. Once I have made
my selections, perhaps by adding them to a shopping cart, I submit my
request for those items, maybe specify this is a quote or PO.

The computer over at HandBagsRUs.com churns away for a second or two and
now has my quote. It can return the results to the web page. I really
don't want that. What I would like is the electronic results be sent to
my computer...if that is possible.

Maybe the results could be returned to me via FTP? Would that be a
better solution?

It would be great if the results could simply be dumped on my computer
and my program could parse the results out.

Some web sites do something "close". The quote might be generated and
then reside at the vendors site. This is pretty much useless. They can
have our quote on their machine but I want the quote on my machine as well.

So I am looking for a communcation from the vendor I can use to update
my application. I believe XML is used to communicate between computers
and was wondering if it could be used in a manner I described. If FTP
is a more doable option that would be great too.

Jan 23 '07 #8
rkc
salad wrote:
I guess I'm approaching this as someone not conversant in the subject.
If I were an expert I wouldn't be asking.

What you're talking about (I think) is called a web service.
Google it. While you're at it, Google XMLHttp Request. It's one of the
easy ways you can communicate with a web service from Access using VBA.
Other ways are automating Internet Explorer or using the web browser
control.
Jan 23 '07 #9
I am still having trouble understanding what you want to do.

This a beta procedure that gets appointments from my Google (Web)
Calendar and puts them into Outlook (it's run in Outlook, not Access.)
It uses XMLHTTP. It requires a reference to MS XML, v6.0. It adds a
hundred appointments in two or three seconds. (RKC introduced me to
XMLHTTP):
Public Sub AddNewCalendarI tems()
Dim ai As AppointmentItem
Dim a$()
Dim d$()
Dim s$
Dim x As XMLHTTP60

Dim z&

Dim pDescription$
Dim pEnd As Date
Dim pLocation$
Dim pStart As Date
Dim pSubject$
Dim pBase As Date
Dim pMinDate As Date
Dim pMaxDate As Date

pMinDate = DateAdd("m", -1, Date)
pMaxDate = DateAdd("yyyy", 1, Date)

Set x = New XMLHTTP60
With x
.Open "GET",
"http://www.google.com/calendar/ical/abigalphanumeri cstringgroup.ca lendar.google.c om/private-abigalphanumeri cstring
1b/basic.ics", False
.Send
s = .responseText
End With
Debug.Print s
a = Split(s, vbNewLine)
For z = LBound(a) To UBound(a) - 1
Set ai = CreateItem(olAp pointmentItem)
d = Split(a(z), ":")
Select Case d(0)
Case Is = "DESCRIPTIO N"
pDescription = d(1)
Case Is = "LOCATION"
pLocation = d(1)
Case Is = "SUMMARY"
pSubject = d(1)
Case Is = "DTSTART;VALUE= DATE"
pStart = DateSerial(Mid$ (d(1), 1, 4), Mid$(d(1), 5, 2),
Mid$(d(1), 7, 2))
If Len(d(1)) 8 Then _
pStart = pStart + TimeSerial(Mid$ (d(1), 9, 2),
Mid$(d(1), 11, 2), Mid$(d(1), 13, 2))
Case Is = "DTEND;VALUE=DA TE"
pEnd = DateSerial(Mid$ (d(1), 1, 4), Mid$(d(1), 5, 2),
Mid$(d(1), 7, 2))
If Len(d(1)) 8 Then _
pEnd = pEnd + TimeSerial(Mid$ (d(1), 9, 2),
Mid$(d(1), 11, 2), Mid$(d(1), 13, 2))
Case Is = "END"
If d(1) = "VEVENT" And _
Len(pSubject) 0 And _
pStart >= pMinDate And _
pStart <= pMaxDate Then
With ai
.Subject = pSubject
If Len(pDescriptio n) 0 Then _
.Body = pDescription
If Len(pLocation) 0 Then _
.Location = pLocation
.Start = pStart
.End = pEnd
.Save
End With
End If
pDescription = vbNullString
pLocation = vbNullString
pStart = pBase
pEnd = pBase
pSubject = vbNullString
Case Else
End Select
Set ai = Nothing
Next z
End Sub

Public Sub RemoveAllCalend arItems()
Dim mf As MAPIFolder
Dim ns As NameSpace
Dim z As Long
Set ns = GetNamespace("M API")
Set mf = ns.GetDefaultFo lder(olFolderCa lendar)
With mf.Items
For z = .Count To 1 Step -1
.Remove z
Next z
End With
End Sub

Jan 23 '07 #10

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

Similar topics

4
1683
by: Bosconian | last post by:
This is more of an HTML question, but it's related to a PHP project. I have a simple form consisting of 2 selects, 1 text input and a submit button. The form action submits to the same page. When entering a string into the text input and hitting return (without tabbing to and clicking "Submit") the page reloads, but no results appear. However tabbing to or clicking "Submit" work as expected. On the server side $_POST exists when...
4
3941
by: ben | last post by:
has anyone got or read this book: robert sedgewick "algorithms in c parts 1-4"? i'm having an absolute nightmare with the book. amoung other things i'm trying to construct the necessary support files needed to make use of the example programmes. (support files as in .h .c files that are #included and used to compile with). the programmes are designed to use abstract data types so that you can drop in different versions of the support...
4
2501
by: Hai Nguyen | last post by:
I'm learning C sharp and do not like vb much. I'm creatiing a wepage using panel to test myself. I tried to use these code below, which is written in VB, and to transform them to c sharp but I got hard time to understand vb syntax. I don't know if anyone in here can point out which is the equivalent object used in c sharp. Translate these two lines to C sharp: Sub Next_Click(Sender As Object, e As EventArgs) Select Case...
11
3264
by: Robert Schuldenfrei | last post by:
I am an older person trying to learn C# just for the fun of it. I am a veteran of older style languages (COBOL, FORTRAN, etc.) and I want to learn an Object Orientated language. Currently working my way through Murach's C# by Joel Murach and Doug Lowe. Since I am not taking a course, I have no one to whom I can address questions. That is why I am turning to this newsgroup. Is this the best NG for a newbie like me? Are there people out...
29
2252
by: Roy Gourgi | last post by:
Hi, I am new to C#. I have the same time scheduling program written in C++ and it is 5 times faster than my version in C#. Why is it so slow as I thought that C# was only a little slower than C++? What am I doing wrong? Here is my code: using System;
5
2718
by: tony | last post by:
I'm using PHP 5 on Win-98 command line (ie no web server involved) I'm processing a large csv file and when I loop through it I can process around 275 records per second. However at around 6,000 records this suddenly drops off to around 40 records per second. This is a big problem as the "live" list is over 4 million records long. I'd break it up but this is to be a regular test so that would be messy
66
3091
by: QuantumG | last post by:
Decompilation is the process of recovering human readable source code from a program executable. Many decompilers exist for Java and .NET as the program executables (class files) maintain much of the information found in the source code. This is not true for machine code executables however. In recent years decompilation for machine code has moved from the domain of crackpots and academic hopefuls to a number of real technologies that...
1
1468
by: Randy Smith | last post by:
Hi ALL, Our consultant added the datamapper definitions to our ApplicationManager.cs file. Has anyone else used this technique, and how has it benefited you? Here is what a sample of it looks like: public static LaborRateDataMapper LaborRateDM; static ApplicationManager() { LaborRateDM = new LaborRateDataMapper();
2
1446
by: Chuthu | last post by:
I am new to Java programming. Can anyone tell me what is meant by 'building your source files'? And what is meant by Ant build tool? Why is it used? What is the meaning of ant clean, ant make -iface and ant dist? For which programs should these commands be applied?
0
8384
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8820
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5630
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.