How to XML to SQL table
Comments
-
Hi,
We’ve got a flow that loads a set of XML files from a Directory and reads them as text files and parses the information with the XPath Query step.
The XPath Query step returns an array of strings. We’d like to then insert the information returned by the XPath Query step into a SQL database.
Because XPath Query returns an array of strings we don’t know how to match that information with the SQL database step.
Could he have some assistance with that?Thanks.
-
Hi
Please send an example of the xml data I will make an example for you.
Thanks.
-
DTSControl
Version1.0 Version
AddressType ALL AddressType
MessageType Data MessageType
From_DTS RH5HC001 From_DTS
To_DTS RH5HC001 To_DTS
From_ESMTP rh5hc001@dts.nhs.uk From_ESMTP
To_ESMTPrh5hc001@dts.nhs.uk To_ESMTP
Subject TEST Subject
LocalId SomparTest01 LocalId
DTSId 20171108133410008352_2E32FF DTSId
PartnerId PartnerId
Compress Y Compress
Encrypted N Encrypted
WorkflowId TOC_DISCH_DMS WorkflowId
ProcessId ProcessId
DataChecksum DataChecksum
IsCompressed N IsCompressed
StatusRecord
DateTime 20171108133410 DateTime
Event TRANSFER Event
Status SUCCESS Status
StatusCode 00 StatusCode
Description Transferred to recipient mailbox Description
StatusRecordDTSControl
-
And this is the select from our table.
SELECT TOP 1000 [Id]
,[LocalID]
,[MessageDTSId]
,[MessageType]
,[SenderCode]
,[RecipientCode]
,[WorkflowID]
,[Event]
,[Status]
,[StatusCode]
,[EventDateTime]FROM [MESH].[dbo].[MessageStatusAudit]
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions