Results 1 to 3 of 3

Thread: Inserting an XML document into Access

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    UK
    Posts
    10

    Question

    What I'm trying to do now, is to insert an XML document stored on my hard disk, into an Access database field.

    I know how to do the database stuff, but I'm not sure how I open the file or create a reference to the file beforehand.

    Any ideas guys ???
    Cheers

    RustyDatsun

    mailto:[email protected]

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Well, if you know how to do the database stuff, then you just have to read the XML text, right?

    Code:
        'Uses MSXML library
        Dim objDOM As DOMDocument
        Set objDOM = New DOMDocument
        
        objDOM.Load ("D:\myfile.xml")   'load the XML file
        
        MsgBox objDOM.xml   'we have XML!  Put this in your DB

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Location
    UK
    Posts
    10

    Smile You would have thought so...

    You would have thought so, but it's not happening as it should...

    Thanks for the code snippet, I'll give it a go.
    Cheers

    RustyDatsun

    mailto:[email protected]

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