Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from turing.freelists.org (turing.freelists.org [206.53.239.180])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id 4E21610031450E
 for <oracle-l@orafaq.com>; Tue,  5 May 2020 02:25:25 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EA5A2214C6;
 Mon,  4 May 2020 20:25:22 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1588638323;
 bh=wl2RsuA7VOeCCFy2+6x8/izrEOXdJPgRJmtmD/Q7U2A=;
 h=From:Sender:Sender:From;
 b=Nb+iq7NA51L0RZd00hTxGU5lzaOm29de93X5QOMaBjLRCuiX6cwVweN4yidMX1GbF
	 0c7Ga4hLUIEqczh3LzMVr0CDncB+umKB2QxowhLSn4dADxdywEDhSvAF/XWIj3/2yf
	 LIMRu43cYXzS5qLbmpib4vUgh951GCV6w9G9NULY=
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id YzLVtvXBWg2r; Mon,  4 May 2020 20:25:22 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 6E8682114A;
 Mon,  4 May 2020 20:24:33 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1588638317;
 bh=wl2RsuA7VOeCCFy2+6x8/izrEOXdJPgRJmtmD/Q7U2A=;
 h=From:Sender:Sender:From;
 b=Q3LxtnbyLr+vaDBecLWRVUpr6K1BI0LMhqHFducKQKVRpGYsgJ/olJ2s7zQ/MLx5Q
	 dgssNJWypaRU5Ycvw9QDD074qPHRopM5o/YYuCKYCwDA67Pu07TyBTvLGNXiIEiTj7
	 JeZd3Sojc4iCyD5SxNtYTfXgZjfO4li95KxFnTA0=
Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 04 May 2020 20:23:48 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 0E3E8210E3
 for <oracle-l@freelists.org>; Mon,  4 May 2020 20:23:48 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id pptfnqkB2MuE for <oracle-l@freelists.org>;
 Mon,  4 May 2020 20:23:47 -0400 (EDT)
Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id D955E210DF
 for <oracle-l@freelists.org>; Mon,  4 May 2020 20:23:47 -0400 (EDT)
Received: by mail-il1-f170.google.com with SMTP id q10so677653ile.0
        for <oracle-l@freelists.org>; Mon, 04 May 2020 17:23:47 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
        bh=RZkjXxdoxoVZDWNXc5wPSCHsWYSvTZJpiv+vK0QqCvY=;
        b=sekW+NBkwIXOvgxxFZR7u479lvBNXWcg/j8bpOgR58UZtnQhDghYNsiJ2LVRTkZVXV
         DYsLbeqD8OKKwGDumEeunKB0AHIwMhN/OPtcTfnqt4IKsbBsctUXNQoMVW8HbwqRmNdz
         z08f7ek02YCTU+FYeQtAX7ewWYXVTtk79QYajcLwJHH21hGfmqLiP1i+hCU0fL1y/UtQ
         5Wo2Qu7WyJt3IbiusKr3rehgOs65Xie7QHqSdOoFwBGNxeu1P8eLfLtccskvKv01AZuu
         M6acsEfrcm6WVbkQyAC85lP5+vP+kssko5IEAPsP0subJL4EI3i+qCa5XQPhPOxw+UWV
         yogg==
X-Gm-Message-State: AGi0PuagslJ+5saFClDqfDne2KRiCk4R2xbPY+k6tPln523Up9GUAvvB
 qmy5R7qW/5p/BmrXwJ0oMx/PEEydmWyhfTmqczjH8IUT
X-Google-Smtp-Source: APiQypLz8Nb5WzRjJZ6MFTNTj5V9UEKecEfGwPXelSGlUuJ4UeUYJWvsI/Y0zBPGp5RZn2uys4l8em0SzwUWSvXjo7g=
X-Received: by 2002:a92:d98c:: with SMTP id r12mr1155749iln.224.1588638227030;
 Mon, 04 May 2020 17:23:47 -0700 (PDT)
MIME-Version: 1.0
From: Jack van Zanen <jack@vanzanen.com>
Date: Tue, 5 May 2020 10:23:35 +1000
Message-ID: <CAFeFPA8qxg=CvUeK1ubfu68Jib3SH-noMfxJjsSGzhVbdhBYDA@mail.gmail.com>
Subject: extracting data from XML using sql
To: "oracle-l@freelists.org" <oracle-l@freelists.org>
Content-Type: multipart/alternative; boundary="00000000000032e71b05a4dba923"
X-archive-position: 76840
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: jack@vanzanen.com
Precedence: normal
Reply-To: jack@vanzanen.com
List-Help: <mailto:ecartis@freelists.org?Subject=help>
List-Unsubscribe: <mailto:oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-Subscribe: <mailto:oracle-l-request@freelists.org?Subject=subscribe>
List-Owner: <mailto:>
List-post: <mailto:oracle-l@freelists.org>
List-Archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
--00000000000032e71b05a4dba923
Content-Type: text/plain; charset="UTF-8"

Hi All

Any XML  guru out there that can help me with this


I have a CLOB field with data like this below and I would like to extract
the  WorkflowDerived_ftpHostName with value XXX.XXX.XXX.XXX in below
example.

I am very novice with XML queries and the examples I found have very basic
XML and when I try to modify it just gives error. ANy hints tips, examples
would be really appreciated

"<?xml version="1.0" encoding="utf-16"?><ns0:WorkflowTemplateActivity
x:Class="Vendor.Workflow.Activities.WorkflowTemplate.WorkflowDerived"
ProcessFlowID="577" x:Name="WorkflowDerived" ProcessDescription="Some
Workflow Name" LastModified="26/03/2020" ProcessID="0"
InstanceBehavior="Multiple" CreatedInVersion="6.04.11.24.01"
ModificationComment="20140303 120000" ConsolidationField="{x:Null}"
RowID="AAAPOwAAWAABajeAAF" Changed="True" DataPartitioningFields="{x:Null}"
GlxTimeStamp="245893507000210" LeadingObjectField="{x:Null}"
Guid="069E1B1F-B3CE-946B-E053-7E28540AEBA6" CreatedBy="EB" ID="577"
ModifiedInVersion="6.05.03.10.18" ModifiedBy="jmoseley"
Revision="$Revision: 210133 $" CreatedOn="30/10/2014"
xmlns:ns1="clr-namespace:Vendor.Workflow.Activities;Assembly=Vendor.Workflow.Activities,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" xmlns="
http://schemas.microsoft.com/winfx/2006/xaml/workflow" xmlns:x="
http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ns0="clr-namespace:Vendor.Workflow.Activities.WorkflowTemplate;Assembly=Vendor.Workflow.Activities,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
<ns0:WorkflowTemplateActivity.ParameterBindings>
<WorkflowParameterBinding ParameterName="WorkflowDerived_ftpHostName">
<WorkflowParameterBinding.Value>
<ns2:String xmlns:ns2="clr-namespace:System;Assembly=mscorlib,
Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089">xxx.xxx.xxx.xxx</ns2:String>
</WorkflowParameterBinding.Value>
</WorkflowParameterBinding>
...
...
...
...


Jack van Zanen


-------------------------
This e-mail and any attachments may contain confidential material for the
sole use of the intended recipient. If you are not the intended recipient,
please be aware that any disclosure, copying, distribution or use of this
e-mail or any attachment is prohibited. If you have received this e-mail in
error, please contact the sender and delete all copies.
Thank you for your cooperation

--00000000000032e71b05a4dba923
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi All<br></div><div><br></div><div>Any XML=C2=A0 gur=
u out there that can help me with this</div><div><br></div><div><br></div><=
div>I have a CLOB field with data like this below and I would like to extra=
ct the=C2=A0

WorkflowDerived_ftpHostName with value XXX.XXX.XXX.XXX in below example.<br=
></div><div><br></div><div>I am very novice with XML queries and the exampl=
es I found have very basic XML and when I try to modify it just gives error=
. ANy hints tips, examples=C2=A0 would be really appreciated</div><div><br>=
</div>&quot;&lt;?xml version=3D&quot;1.0&quot; encoding=3D&quot;utf-16&quot=
;?&gt;&lt;ns0:WorkflowTemplateActivity x:Class=3D&quot;Vendor.Workflow.Acti=
vities.WorkflowTemplate.WorkflowDerived&quot; ProcessFlowID=3D&quot;577&quo=
t; x:Name=3D&quot;WorkflowDerived&quot; ProcessDescription=3D&quot;Some Wor=
kflow Name&quot; LastModified=3D&quot;26/03/2020&quot; ProcessID=3D&quot;0&=
quot; InstanceBehavior=3D&quot;Multiple&quot; CreatedInVersion=3D&quot;6.04=
.11.24.01&quot; ModificationComment=3D&quot;20140303 120000&quot; Consolida=
tionField=3D&quot;{x:Null}&quot; RowID=3D&quot;AAAPOwAAWAABajeAAF&quot; Cha=
nged=3D&quot;True&quot; DataPartitioningFields=3D&quot;{x:Null}&quot; GlxTi=
meStamp=3D&quot;245893507000210&quot; LeadingObjectField=3D&quot;{x:Null}&q=
uot; Guid=3D&quot;069E1B1F-B3CE-946B-E053-7E28540AEBA6&quot; CreatedBy=3D&q=
uot;EB&quot; ID=3D&quot;577&quot; ModifiedInVersion=3D&quot;6.05.03.10.18&q=
uot; ModifiedBy=3D&quot;jmoseley&quot; Revision=3D&quot;$Revision: 210133 $=
&quot; CreatedOn=3D&quot;30/10/2014&quot; xmlns:ns1=3D&quot;clr-namespace:V=
endor.Workflow.Activities;Assembly=3DVendor.Workflow.Activities, Version=3D=
1.0.0.0, Culture=3Dneutral, PublicKeyToken=3Dnull&quot; xmlns=3D&quot;<a hr=
ef=3D"http://schemas.microsoft.com/winfx/2006/xaml/workflow">http://schemas=
.microsoft.com/winfx/2006/xaml/workflow</a>&quot; xmlns:x=3D&quot;<a href=
=3D"http://schemas.microsoft.com/winfx/2006/xaml">http://schemas.microsoft.=
com/winfx/2006/xaml</a>&quot; xmlns:ns0=3D&quot;clr-namespace:Vendor.Workfl=
ow.Activities.WorkflowTemplate;Assembly=3DVendor.Workflow.Activities, Versi=
on=3D1.0.0.0, Culture=3Dneutral, PublicKeyToken=3Dnull&quot;&gt;<br>	&lt;ns=
0:WorkflowTemplateActivity.ParameterBindings&gt;<br>		&lt;WorkflowParameter=
Binding ParameterName=3D&quot;WorkflowDerived_ftpHostName&quot;&gt;<br>			&=
lt;WorkflowParameterBinding.Value&gt;<br>				&lt;ns2:String xmlns:ns2=3D&qu=
ot;clr-namespace:System;Assembly=3Dmscorlib, Version=3D4.0.0.0, Culture=3Dn=
eutral, PublicKeyToken=3Db77a5c561934e089&quot;&gt;xxx.xxx.xxx.xxx&lt;/ns2:=
String&gt;<br>			&lt;/WorkflowParameterBinding.Value&gt;<br>		&lt;/Workflow=
ParameterBinding&gt;<div>...</div><div>...</div><div>...</div><div>...</div=
><div><br></div><div><br clear=3D"all"><div><div dir=3D"ltr" class=3D"gmail=
_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr"><div>Jack v=
an Zanen</div><div><br></div><div><img src=3D"https://docs.google.com/uc?id=
=3D0BwovDucFT1fXaEREVHNWRWZyNjg&amp;export=3Ddownload" width=3D"96" height=
=3D"96"><br>------------------------- <br>This e-mail and any attachments m=
ay contain confidential material for the sole use of the intended recipient=
. If you are not the intended recipient, please be aware that any disclosur=
e, copying, distribution or use of this e-mail or any attachment is prohibi=
ted. If you have received this e-mail in error, please contact the sender a=
nd delete all copies.<br>Thank you for your cooperation </div></div></div><=
/div></div></div>

--00000000000032e71b05a4dba923--
--
http://www.freelists.org/webpage/oracle-l


