SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Help with OPENXML

Help with OPENXML

john 35827
john 35827
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 5
Hi all

I am a bit of a newbie with openxml and need a little guidance from any kind OpenXML pro's out there !, I have an XML file to import into a set of tables on a regular basis and just need a little help in getting going .. a sample of my xml is

If any kind person could point in the right direction of say importing the booking agent area I am sure I can figure the rest out

thanking you all greatly in advance :o)


<?xml version="1.0" encoding="UTF-8" ?
><my:Handoff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.evolvi.biz EVO_Handoff.xsd"
<Agency Ref="9873" ExternalRef="Wayte"/>
<ImmediateDetail OrderItemRef="25388514" TransactionType="Issue"

TransactionDate="2013-06-21T13:50:00" MachineType="30" MachineNumber="0791" CurrencyCode="GBP" PersonalCCUsed="false" FulfilmentType="Other">
<Account Ref="28422" ExternalRef="0003" Type="Conventional" Period="FourWeekly" Immediate="true" EvolviInvoice="false" EvolviPayment="false" EvolviFinancial="false"/>

Ref="60703" ExternalRef="HG" BranchExternalRef="01" Unit="Stoke">
<Person FirstName="HAZEL" LastName="GARNER" Title="MRS"/>
<Email Address="hazel@waytetravel.co.uk"/>

<TicketingAgent Ref="60703" ExternalRef="HG" BranchExternalRef="01" Unit="Wayte Travel Management"/>

<PassengerGroup LeadRef="59392156">
<Passenger Ref="59392156" AdultChild="Adult">
<Person FirstName="T" LastName="POVEY" Title="MR"/>
<CustomField Code="1" Label="Purchase Order" Value="4501221551"/>
<CustomField Code="2" Label="Cost Centre" Value="128050"/>
<CustomField Code="3" Label="File Number" Value="50809"/>


You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum