Results 1 to 5 of 5

Thread: import file xml

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    7

    import file xml

    hello
    how can import data from a xml file to insert them in my database by vb.net/asp.net??
    thank you

  2. #2
    Frenzied Member vbdotnetboy's Avatar
    Join Date
    Jun 2004
    Location
    Lewisburg, PA "Next year Raiders in the Super Bowl"
    Posts
    1,310

    Re: import file xml

    do you want to import the entire file of just specific data?

    Derek - Using VS 2008 99% of the time and VS 2003 1% of the time

    Please Help Us To Save Ana

    ● Helpful Links: DNR TV | Awesome site for tips | Using ADO.NET to work with Excel | Xml Namespace 2.0 Framework Changes|Ultra High Security Password Generator | Mendhak's ADO.NET Tutorial
    ● Code Bank: Random Password Generator | Generic DbProviderFactory Access
    ● Site Work: Bottle Run Xtreme | Spaids Racing.com

    Company I work for - CSSI

    WHEN POSTING PLEASE INDICATE VERSION

    Please use vbcode tags or code tags when posting code
    [highlight=vb]ALL your code goes here[/highlight] or [code]ALL your code goes here[/code]

    If my post helped you in anyway... please be kind and give me some ratings

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    7

    Re: import file xml

    all data in the file

  4. #4
    Frenzied Member vbdotnetboy's Avatar
    Join Date
    Jun 2004
    Location
    Lewisburg, PA "Next year Raiders in the Super Bowl"
    Posts
    1,310

    Re: import file xml

    does the file have the same structure as the table(s)

    ie

    file
    Code:
    <root>
      <TableName1>
        <Col1>data1</Col1>
        <Col2>data2</Col2>
        etc.
      </TableName2>
      <TableName1>
        <Col1>data1</Col1>
        <Col2>data2</Col2>
        etc.
      </TableName2>
    </root>
    in the database

    Table1
    Col1|Col2|etc.

    Table2
    Col1|Col2|etc.

    Derek - Using VS 2008 99% of the time and VS 2003 1% of the time

    Please Help Us To Save Ana

    ● Helpful Links: DNR TV | Awesome site for tips | Using ADO.NET to work with Excel | Xml Namespace 2.0 Framework Changes|Ultra High Security Password Generator | Mendhak's ADO.NET Tutorial
    ● Code Bank: Random Password Generator | Generic DbProviderFactory Access
    ● Site Work: Bottle Run Xtreme | Spaids Racing.com

    Company I work for - CSSI

    WHEN POSTING PLEASE INDICATE VERSION

    Please use vbcode tags or code tags when posting code
    [highlight=vb]ALL your code goes here[/highlight] or [code]ALL your code goes here[/code]

    If my post helped you in anyway... please be kind and give me some ratings

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    7

    Re: import file xml

    ok
    thank you
    i try in this way
    bye

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