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

  • Home
  • SEARCH
  • 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 97635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:02:33+00:00 2026-05-11T00:02:33+00:00

A little help needed. I’m receiving an xml file similar to this: <?xml version=1.0

  • 0

A little help needed. I’m receiving an xml file similar to this:

<?xml version='1.0' encoding='utf-16'?> <dc:GRANTEE xsi:schemaLocation='http://www.blahblahblah.com/FullSchema test.xsd ' xmlns:dc='http://www.blahblahblah.com/FullSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>     <RPGID>90CU0024</RPGID>     <PLANID>01</PLANID>     <CASE>         <CASEID>100001</CASEID>         <RPGID>90CU0024</RPGID>         <FILE_O>2008-02-08T00:00:00</FILE_O>         <ADULT>             <ADULTID>100001A1</ADULTID>             <CASEID>100001</CASEID>             <APRIMARY>1</APRIMARY>             <ARLTNSHP>BM</ARLTNSHP>             <ADOB>1978-12-03T00:00:00</ADOB>             <ARACAI>1</ARACAI>             <ASEX>2</ASEX>             <SATX>                 <SATXID>MD2120378</SATXID>                 <ADULTID>100001A1</ADULTID>                 <SAASSESS>2008-02-22T00:00:00</SAASSESS>                 <PUBPRVTX>1</PUBPRVTX>                 <TXADMIT>2008-02-23T00:00:00</TXADMIT>                 <TXSET>5</TXSET>             </SATX>         </ADULT>         <CHILD>             <CHILDID>100001C1</CHILDID>             <CASEID>100001</CASEID>             <CINDEX>1</CINDEX>             <CHBDATE>2008-02-05T00:00:00</CHBDATE>             <CHSEX>1</CHSEX>             <CHRACAI>0</CHRACAI>             <MALTX>                 <MALTXID>10000023</MALTXID>                 <CHILDID>100001C1</CHILDID>                 <RPTDT>2008-02-05T00:00:00</RPTDT>                 <CHMAL1>2</CHMAL1>              </MALTX>          </CHILD>     </CASE> 

What I need to do is import it and shred it to tables with a stored proc. I’ve been unable to find anything other than general regurgitation of the examples in the books online, uh, online. what I need is a little syntax walk-through that shows how I can bulk insert the file (using OPENROWSET?) and then take all of the data and split it to matching tables while maintaining keys. It seems like it should be easy, but the reference material is just hard to come by. I also have access to schema if I need that and can annotate as well.

Anybody have a good reference?

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T00:02:34+00:00Added an answer on May 11, 2026 at 12:02 am

    You can use the BULK INSERT statement with the RAW keyword to load the data into a table with a single column. It will put the entire document into a single row. Then query the table and put the data into a variable with a datatype of XML.

    This blog post shows how to get data out of the XML document.

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

Sidebar

Related Questions

I need a little help on this subject. I have a Web application written
Little help needed if possible. I think I'm close just can't quite figure it
I'm looking for a little help on programmatically passing parameters to a SSRS report
I have a little dilemma that maybe you can help me sort out. I've
I am getting a little confused and need some help please. Take these two
Ok here's a little problem I would love to get some help on. I
Please help! I'm really at my wits' end. My program is a little personal
I need a little help with getting my camera to work right. What I'm
My little site should be pooling list of items from a table using the
A little while ago I managed to get Visual Studio 2008 (C++) into a

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.