Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3427844
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:53:13+00:00 2026-05-18T06:53:13+00:00

I have a sample file from a customer and need to match the schema

  • 0

I have a sample file from a customer and need to match the schema with data from various tables in my MS Database.

Tried writing a query and exporting the XML but it oversimplifies the XML and assumes that each row from the query is a single node and all the data elements fall under each instance of that node.

Is there a way to setup a schema (possibly build it by importing my sample file) and then map fields to that for the export?

I’m open to using Excel if by chance it is better suited – just figured the access relationships would be better.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:53:14+00:00Added an answer on May 18, 2026 at 6:53 am

    Perhaps you are looking for something like:

    Sub ExportCustomerOrderData()
    
        Dim objOrderInfo As AdditionalData
    
        Dim objOrderDetailsInfo As AdditionalData
    
    
    
        Set objOrderInfo = Application.CreateAdditionalData
    
    
    
        '' Add the Orders and Order Details tables to the data to be exported.
    
        Set objOrderDetailsInfo = objOrderInfo.Add("Orders")
    
        objOrderDetailsInfo.Add "Order Details"
    
    
    
        '' Export the contents of the Customers table. The Orders and Order
    
        '' Details tables will be included in the XML file.
    
        Application.ExportXML ObjectType:=acExportTable, DataSource:="Customers", _
    
                              DataTarget:="Customer Orders.xml", _
    
                              AdditionalData:=objOrderInfo
    
    End Sub
    

    From: http://msdn.microsoft.com/en-us/library/ff193212.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple SSIS package which reads data from flat file and insert into
I have simple SSIS package where I import data from flat file into SQL
I am writing a basic file dump from one database to another. I am
I have the below script to import data from a csv file on my
I have written simple code to get content from xml file to php. $xml
I have a simple NAnt build file, which attempts to perform an update from
I have a sample file like the following: CREATE GLOBAL TEMPORARY TABLE tt_temp_user_11 (
I have these (sample) lines in a HTML-file: test.ABC.test test.ABCD.test test.ABCE.test And this Ant
I have been provided an XSD and a sample Xml file that contains the
I have a bit of xml file named Sample.xml which is shown below <?xml

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.