I have a XML File pasted below. I want to parse it in MySQL.
1) I referred some link[1] in which first we have to load the XML file and insert it in the table.
[1] - https://dev.mysql.com/doc/refman/5.5/en/load-xml.html
2) And also I read that fetch the value using ExtractValue function, but i am getting output as NULL
ExtractValue(@xml, -here-node-path);
Here's XML File:
<?xml version="1.0" encoding="utf-8"?>
<ItemData>
<Rows>
<VRow ID="ba3c4fd9-6691-49ee-996a-9841810d8264" ItemType="Pulse" />
<VRow ID="401682df-9839-456e-b08f-563361392530" ItemType="Height" />
<VRow ID="c39ee7ab-7217-4750-bc0d-9cec495fdd41" ItemType="Weight" />
<VRow ID="effabbcb-718f-4b0c-8f81-6d0bf4ba5028" ItemType="BloodPressure" />
<VRow ID="eb6451d3-646a-4447-919a-f778daf6fdc5" ItemType="BodyMassIndex" />
</Rows>
<Groups>
<VGroup ID="4535bf31-da00-47e8-8975-f21a1b3fdb62" ReadingDate="2009-07-24T14:26:28.50Z">
<Notes />
<Readings>
<VitalReading ID="af0af8e1-41d4-4cc9-a042-7a33876b643e" ItemType="Pulse">
<Values>
<ValueItem Type="{302DABB8-BF22-4da1-BE2F-8213F8A191D8}" ID="f46322d9-2e15-4542-ad33-d37395dfe31b" Initialized="True">
<Pulse>80</Pulse>
</ValueItem>
</Values>
</VitalReading>
</Readings>
</VGroup>
</Groups>
</ItemData>
Can anyone suggest me some solution over this?