Hi Team
I need someone who can show how to convert xml data into sql query. Below is my xml data.
SO625144
Normal OrderType>
New OrderStatus>
KFC CustomerName>
2018-03-08 13:52:21 CreateDate>
1 LineNumber>
GSX837420 ProductCode>
Parts ProductType>
13.54 CostPrice>
84.49 SalesPrice>
10 Quantity>
OrderLine>
2 LineNumber>
AVF697420 ProductCode>
Apparel ProductType>
19.34 CostPrice>
105.99 SalesPrice>
25 Quantity>
OrderLine>
SO625145
Normal OrderType>
New OrderStatus>
Nandos CustomerName>
2018-03-09 08:56:21 CreateDate>
1 LineNumber>
YTS786663 ProductCode>
Parts ProductType>
8.44 CostPrice>
49.22 SalesPrice>
2 Quantity>
OrderLine>
2 LineNumber>
UYT485911 ProductCode>
Equipment ProductType>
41.57 CostPrice>
250.45 SalesPrice>
12 Quantity>
OrderLine>
3 LineNumber>
PLO879996 ProductCode>
Apparel ProductType>
21.57 CostPrice>
65.45 SalesPrice>
8 Quantity>
OrderLine>
Jignesh KumarPosted Nov 2, 2023, 10:16 AM
Hello,
Please refer this link : https://tableconvert.com/xml-to-sql
You can use this query,
Guest UserPosted Nov 3, 2023, 12:09 AM
Hi All
Mahesh this xml data needs to first be written in sql query so can fetch using entity framework to the project.
Mahesh ChandPosted Nov 2, 2023, 7:56 PM
What exactly are you trying to do with this XML?
Muzaffar Ur RahmanPosted Nov 2, 2023, 9:53 AM
Could you please refer below aritel to convert xml data into sql query.
https://docs.devart.com/data-pump/importing-data/import-from-xml.html