Results 1 to 3 of 3
  1. #1
    edmscan is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    168

    Dealing with importing and exporting of XML files and it being altered by Access.

    Ok .. I have an XML file and I would like to be able to import the xml file into Access and manipulate it and spit it back out .. and have it still be usable, ie unaltered.



    So .. the top of the file is like this:

    <?xml version="1.0"?>
    <ArrayOfMemoryEntry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    The end of the file is like this:

    </ArrayOfMemoryEntry>

    So I can import the data into Access and do as I need .. mostly I will be appending data into the table.

    But I need to spit it back out .. and that is the tough part as Access wants to change the top and bottom of the file. The data part (the middle of the file) is fine .. it is the top and bottom that it changes on export.

    For example .. it changes it to:

    <?xml version="1.0" encoding="UTF-8"?>
    <dataroot xmlnsd="urn:schemas-microsoft-comfficedata" generated="2015-11-03T02:54:46">

    and the ending:

    </dataroot>

    I need it to be unaltered .. as the program reading the file after does not accept the changes.

    I don't want to have to edit it manually in any fashion. I just want to edit the data as needed and leave the rest as it was originally.

    I hate XML .. I will be honest, but I need a solution.

    Thanks in advance ..
    edmscan

  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Why not make a copy.. import what you need into Access. Then use the original, in it's still original state, for whatever else you want to do.

    We really need to see what is the XML;
    what do you do with it in Access; and
    why do you still need the original for further processing?

  3. #3
    edmscan is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    168
    Actually yes .. I decided that I will import the data and edit the file manually. I will not be doing it often. So it will work.

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

Similar Threads

  1. Replies: 4
    Last Post: 06-01-2015, 08:29 PM
  2. Replies: 10
    Last Post: 01-08-2015, 06:16 AM
  3. Replies: 10
    Last Post: 12-28-2012, 02:06 PM
  4. importing .csv and .xls files to access
    By TheLost in forum Access
    Replies: 5
    Last Post: 02-16-2012, 08:18 PM
  5. Importing Xls and CSV files into MS Access
    By Jeff in forum Import/Export Data
    Replies: 1
    Last Post: 02-17-2009, 11:56 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