Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Asp programming [Thread Next] Re: Asp programmingTo: NULL Date: 5/7/2004 5:02:00 AM I am new to XML and .NET and am trying to set up a way to pass information
between some VB.NET applications using XML files. Based on some articles I
found I believe I need to read the XML into a dataset and work with it in
that form. My XML sample file has what I think should create two tables with
a relation but I'd like to know exactly what is in the dataset after I read
the XML file. I want to be able to see what tables were created and what
fields are defined for each table. My XML test file is listed below. I am
using the code here to load the XML data. Any pointers to relevant articles
will be appreciated.
=============== code =====================
Private Sub btnImportXML_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnImportXML.Click
' Instantiate the DataSet variable.
Dim dsImportXML As DataSet
dsImportXML = New DataSet
dsImportXML.ReadXml("c:\temp\contest.xml")
' At this point I'd like to be able to see what is in the dataset?
End Sub
=========================================
============== XML Data ===================
<?xml version="1.0" encoding="utf-8" ?>
<!-- Test for Contest File -->
<contest>
<contestinfo contestid="005">
<contestname>South Side Contest</contestname>
<contestdate>2004-05-07</contestdate>
</contestinfo>
<entry contestid="005">
<name>Johnny Jones</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry contestid="005">
<name>Mary Smith</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry contestid="005">
<name>Ed Brown</name>
<team>Hot Shots</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
<entry contestid="005">
<name>Jack Green</name>
<team>Marauders</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
</contest>
=========================================
Wayne
"Neil Smith [MVP Digital Media]" <neil@n...> wrote in message
news:40950420.685385@n......
> Javascript has nothing to do with this. Neither does your question
> have anything to do with XML (the purpose of this forum). So I can
> only assume you couldn't be botherd to read a manual, read the title
> of this forum, or do a google search for 'ASP file upload script'. You
> are the weakest link, goodbye.
>
> On Sun, 2 May 2004 06:07:27 -0700, "arash" <arash_esmaeili@y...>
> wrote:
>
> >
> >I'm designing a web page using databases by asp. I want
> >to give my users the ability to upload a file but I don't
> >know the JavaScript or VBScript subroutin for uploading.
> >would u please help me?
>
> ========================================================
> CaptionKit http://www.captionkit.com : Produce subtitled
> internet media, transcripts and searchable video. Supports
> Real Player, Quicktime and Windows Media Player.
>
> VideoChat with friends online, get Freshly Toasted every
> day at http://www.fresh-toast.net : NetMeeting solutions
> for a connected world.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
