Howdy,
I am an Oracle DBA and new to XML parsing.
Given the following data sample, I would like to achieve two things.
1. extract only the value of the "Root" tag which is C:\Flintstone
2. extract the tag "TM_PORT" and its value
The column is a CLOB.
thank you
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE preferences SYSTEM '
<preferences EXTERNAL_XML_VERSION="1.0">
<root type="user">
<map />
<node name="com">
<map />
<node name="mynode">
<map />
<node name="utils">
<map />
<node name="properties">
<map>
<entry key="Save" value="ON" />
<entry key="LiveTradeSession" value="SOCKET"/>
<entry key="TM_PORT" value="12021" />
<entry key="TM_PORT2" value="12022" />
<entry key="Root" value="C:/Flintstone" />
<entry key="TRADEMONITOR" value="ON" />
<entry key="HEALTH_MONITOR_CRITICAL_DISK_SPACE" value="500" />
<entry key="HEALTH_MONITOR_WARNING_DISK_SPACE" value="750" />
<entry key="HEALTH_MONITOR_PERIOD" value="600000" />
</map>
</node>
</node>
</node>
</node>
</root>
</preferences>
I am an Oracle DBA and new to XML parsing.
Given the following data sample, I would like to achieve two things.
1. extract only the value of the "Root" tag which is C:\Flintstone
2. extract the tag "TM_PORT" and its value
The column is a CLOB.
thank you
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE preferences SYSTEM '
<preferences EXTERNAL_XML_VERSION="1.0">
<root type="user">
<map />
<node name="com">
<map />
<node name="mynode">
<map />
<node name="utils">
<map />
<node name="properties">
<map>
<entry key="Save" value="ON" />
<entry key="LiveTradeSession" value="SOCKET"/>
<entry key="TM_PORT" value="12021" />
<entry key="TM_PORT2" value="12022" />
<entry key="Root" value="C:/Flintstone" />
<entry key="TRADEMONITOR" value="ON" />
<entry key="HEALTH_MONITOR_CRITICAL_DISK_SPACE" value="500" />
<entry key="HEALTH_MONITOR_WARNING_DISK_SPACE" value="750" />
<entry key="HEALTH_MONITOR_PERIOD" value="600000" />
</map>
</node>
</node>
</node>
</node>
</root>
</preferences>