Are you trying to do a web page or desktop solution? For displaying
XML data this works well in my code behind for a datagrid on an .aspx
page:

    Private Function MakeDataView() as DataView
        Dim myDataSet As New DataSet()
        myDataSet.ReadXml(Server.MapPath("Manufacturers.xml"))
        Dim view As DataView = New DataView(myDataSet.Tables(0))
        view.AllowDelete = False
        view.AllowEdit = False
        view.AllowNew = False
        view.Sort = "name ASC"
        Return view
    End Function

    Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim view as DataView = MakeDataView()
        dgManufacturers.DataSource = view
        dgManufacturers.AllowSorting = True
        dgManufacturers.DataBind()
    End Sub

Another more advanced poster will have to guide us in how best to do
data editing on the form, queries to select a specific record, etc....
I'd like to know that too!  :-)



On Oct 16, 12:13 am, RoarkDude <[EMAIL PROTECTED]> wrote:
> When I add a dataset (dataset1.xsd) to the project, how can I get it
> to act like a dataset from a database?  I want be able to 1) open a
> form and find that dataset in the list of datasources, 2) Drag and
> drop fields on to the form and have them bound to the xml file that
> goes along with the xsd, and 3) perform the usual load data, add,
> edit, delete, and save data functions.  This is easy with a database
> datasource, how do I make it happen without a database, just an xml
> and xsd file?
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment

You may subscribe to group Feeds using a RSS Feed Reader to stay upto date 
using following url  

<a href="http://feeds.feedburner.com/DotNetDevelopment";> 
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---

Reply via email to