Results 1 to 3 of 3

Thread: Datatable Help

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2009
    Posts
    448

    Datatable Help

    I have created an xml schema and an xml file from a datatable. I am now trying to read that data in which is working fine. I can access the data but the problem is that I want to know how many Tables there are in the xml file. For example the setup looks like this:

    <table>
    <row1>rowinfo</row1>
    <row2>rowinfo</row2>
    </table
    <table>
    <row1>rowinfoagain</row1>
    <row2>rowinfoagain</row2>
    </table>
    I want to know how many "<table>" objects there are. Can anyone help?
    If I helped you please rate me.

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Datatable Help

    Do you have any existing code that this method needs to fit into / work with or are you just looking for any possible way to count the number of Table elements in your XML file?
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2009
    Posts
    448

    Re: Datatable Help

    Yeah I actually got it using a dataset. I can create a datatable when I export it but then when I read it I can read it into a dataset. If you read into a datatable you have to create and xml schema file too but it seems like datasets are easier to work with.
    If I helped you please rate me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width