Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Asp programming

From: "Wayne Wengert" <wayneDONTWANTSPAM@-------.--->
To: 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.




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent