Results 1 to 4 of 4
  1. #1
    thompjas is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2015
    Posts
    13

    Exporting Nested XML files

    Hi,



    I need to export nested XML files i.e. with parent and child fields from 2 different queries, I can perform the action from 2 tables that have a relationship created between them via VB scripts and the structure is what I want.

    My issue is that I cannot export one of the tables as an XML so to get around this I created a query that extracts the key fields I require for another application's processing and this needs an XML file

    the second file needs to also be a query as it is looking up a multi-value field used in a form / table (used for ease of assigning multiple people to a task) and then placing extra details such as full name, email address and mobile number etc. in the query

    does anyone have any recommendations how I can get these 2 files 'nested' ?

    regards

    Jason

  2. #2
    Bulzie is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    Nov 2015
    Posts
    1,463
    Can you give examples of Table/Field structure and data. Could you Append the data to your 2 tables each time and then run your Export as you said works?

  3. #3
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    My experience with Access interacting with XML is that Access is not a great tool to do so. I have only had to use Access to build XML files a couple of times. I ended up using streamwriter or whatever it is called in VBA to use strings and build a text file. Aside from that, I believe I have referenced the XML dom in order to use some web API's. Maybe that is an option for you.

    I believe there are some third party tools that can be used with Access. It might be easier to use SQL server or a free version of SQL server as a backend. With that, you might find a better tool to import and export your XML documents. Then, use Access to connect to the SQL backend and display the results to your users.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716
    Jason,

    I recommend you give us all the facts and any data you have. Your post lacks some facts.
    Show us some sample data --both before and what you expect for output (After).

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 11-03-2015, 12:30 PM
  2. Replies: 10
    Last Post: 01-08-2015, 06:16 AM
  3. Replies: 1
    Last Post: 09-13-2013, 12:00 PM
  4. preventing tables from exporting to other mdb files.
    By zareh in forum Import/Export Data
    Replies: 1
    Last Post: 01-22-2013, 01:36 PM
  5. Replies: 3
    Last Post: 09-24-2010, 02:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums