Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 25th, 2007, 04:57 PM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vassala
Default how to get a xml field from outside the xml file?

Hi everyone.

I could use some help here.
VBA (a little) is the only "program language" I know to use.
However, I must recognize I still have a lot to learn.

I have a bunch of xml files in a directory (ord4527777.xml).
They don´t have a incremental file number but i need to get a field content of each one of them <BuyerOrderNumber>...
Usually, I must open all of them one by one, get the field contend and close the file and go to the next one... half a day
Is there a way i could use access to do this?
Could I read the xml content automatically and put it in a table and go to the next file?
More useful would be a process that could be automatic until get to t he last file...

Thank you very much

Cordeiro
 
Old January 26th, 2007, 08:29 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Since it is XML, you could proably run a routine to import the data to a table that matches the schema, then run an Update or Append query to pull the data, then delete the old data.

Failing that, I can give you code to read the xml file line by line until it finds the data you want, and then pull that.

This should be easy to automate since the files will always have the data you want in the same place.

Lemme know.

mmcdonal
 
Old January 30th, 2007, 04:10 PM
Registered User
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vassala
Default

Hi mmcdonal,

I kindly would appreciate your offer.
Probably I have not enough VBA experience to understand that code but it will be a reference to go ahead.

Thank you so much,

O. Cordeiro






Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple input xml / get data from other xml file elayaraja.s XSLT 3 July 25th, 2008 06:59 AM
VB.net, adding XML data to an existing XML file saikoboarder XML 11 April 17th, 2008 04:19 PM
DTS Package, XML task. Read XML file and store it Victoria SQL Server DTS 0 July 24th, 2006 02:43 PM
Problem to create an xml file from two xml files saurabh_inblore XSLT 1 April 12th, 2006 02:58 AM
query xml file for particular field smk_bj XML 1 July 30th, 2005 11:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.