Need to replace a XML tag request in OSB
I have my proxy in OSB service connected to MQ as the supplier of inputs. Now, I want to take a couple of namespaces and copy them into the body and remove the labels.Here is the entrance to MQ...
-------------------------------------------------------------------------------------------------------------------------------------
< soapenv:Envelope xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' xmlns: v = "http://www.w3.org/1999/XSL/Transform" >
< soapenv:Header / >
< soapenv:Body >
< v: createAccount >
< partId > Mnhtd_21 < / partId >
< / v: createAccount >
< / soapenv:Body >
< / soapenv:Envelope >
-------------------------------------------------------------------------------------------------------------------------------------
I want this xml request to be converted in the following xml code before it can be routed to business...
-------------------------------------------------------------------------------------------------------------------------------------
< v: createAccount xmlns: v = "http://www.w3.org/1999/XSL/Transform" >
< partId > Mnhtd_21 < / partId >
< / v: createAccount >
-------------------------------------------------------------------------------------------------------------------------------------
How can I convert in the stream of messages of the Proxy Service?
Help, please.
Thanks in advance!
Published by: 994962 on March 20, 2013 12:10 AM
Hello
Have you managed to make it work?
Kind regards
Fabio Douek
Tags: Fusion Middleware
Similar Questions
-
How can I find and replace the xml tags?
Hi, I am using xml in my workflow and want to be able to remove some tags if they contained particular text.
Here is an example of the xml struct...
< Entry >
< name > DEFAULT < / name >
< such > default < / such >
DEFAULT < address > < / address >
< / Entry >
I use this initial structure to define paragraph styles to follow when you import the xml data.
This leaves DEFAULT in place everywhere where an entry is not any content of this field.
I want to be able to import my XML and then run a script that deletes tags that include by DEFAULT, - I need to the xml tag to remove not only the text, if I do a normal find and replace will remove only the text not the tags that is causing problems with style. I also want to remove the end of para/return (^ p) that I placed at the end of the line. So it would be the same opening editor mode and removing content, tags + hard back in there, but I want to automate the process...
So I think that's what I'm looking for in each case
"< name > DEFAULT < / name > ^ p.
and I want to replace it with nothing.
Is this possible in a script (ideally javascript)?
I have a little knowledge of javascript, but don't know how to search for and target this kind of string in indesign...
using indesign cs5
Thank you very much
Hello
Script should do it in two steps:
1 find all occurrences of that is ' > by DEFAULT.<>
2 delete the whole paragraph which is a found_text container.
For example, in this way - JS - (a textFrame filled your text must be selected):
var mStory = app.selection[0].parentStory; app.findTextPreferences = null; app.findTextPreferences.findWhat = ">DEFAULT<"; var myF = mStory.findText(); var count = myF.length; while (count--) myF[count].paragraphs[0].remove();
Rgds
-
You need to remove the XML tag... Having the same element
Hello guys,.
need help, im having trouble removing the tag < EVENT [elem = 6] >
< EVENTS elem = "6" >
< FROM_CODE / >
< PROMO_ID / >
< TO_CODE / >
< TELCO_INFO >
< CALLED_TO > 0063 < / CALLED_TO >
< CALLING_FROM > 63937390517 < / CALLING_FROM >
< / TELCO_INFO >
< GSM_INFO >
< Indicated / >
< USAGE_TYPE > DATA < / USAGE_TYPE >
< / GSM_INFO >
< START_T > 20/11/2015 22:08 < / START_T >
< END_T > 20/11/2015 22:08 < / END_T >
< BAL_IMPACTS elem = "0" >
< AMOUNT > 0.89 < / AMOUNT >
< IMPACT_TYPE > 258 < / IMPACT_TYPE >
< QUANTITY > 103229 < / QUANTITY >
< RATE_TAG / >
VAT < TAX_CODE > < / TAX_CODE >
< / BAL_IMPACTS >
< BAL_IMPACTS elem = "1" >
< AMOUNT > 0.11 < / AMOUNT >
< IMPACT_TYPE > 4 < / IMPACT_TYPE >
< QUANTITY > 0.89 < / QUANTITY >
< RATE_TAG / >
VAT < TAX_CODE > < / TAX_CODE >
< / BAL_IMPACTS >
< elem TOTAL = "608" >
< AMOUNT > 1 < / AMOUNT >
< / TOTAL >
< AMOUNT_GROSS > 1 < / AMOUNT_GROSS >
< AMOUNT_TAXED > 0.89 < / AMOUNT_TAXED >
< / EVENTS >
< EVENTS elem = "6" >
< SYS_DESCR > Cycle before expenses (rev): 549 DUAL-DEF < / SYS_DESCR >
< BAL_IMPACTS elem = "0" >
< QUANTITY > 1 < / QUANTITY >
Plan < RATE_TAG > < / RATE_TAG >
< AMOUNT > 490,18 < / AMOUNT >
< IMPACT_TYPE > 1 < / IMPACT_TYPE >
VAT < TAX_CODE > < / TAX_CODE >
< / BAL_IMPACTS >
< BAL_IMPACTS elem = "1" >
< QUANTITY > 549 < / QUANTITY >
Plan < RATE_TAG > < / RATE_TAG >
< AMOUNT > - 490.18 < / AMOUNT >
< IMPACT_TYPE > 32 < / IMPACT_TYPE >
< TAX_CODE > VTSKY < / TAX_CODE >
100% of < DISCOUNT_INFO > < / DISCOUNT_INFO >
< / BAL_IMPACTS >
< BAL_IMPACTS elem = "2" >
< QUANTITY > 490,18 < / QUANTITY >
Tax of < RATE_TAG > < / RATE_TAG >
< AMOUNT > 58,82 < / AMOUNT >
< IMPACT_TYPE > 4 < / IMPACT_TYPE >
VAT < TAX_CODE > < / TAX_CODE >
< / BAL_IMPACTS >
< BAL_IMPACTS elem = "3" >
< QUANTITY > - 490.18 < / QUANTITY >
Tax of < RATE_TAG > < / RATE_TAG >
< AMOUNT > - 58.82 < / AMOUNT >
< IMPACT_TYPE > 4 < / IMPACT_TYPE >
< TAX_CODE > VTSKY < / TAX_CODE >
< / BAL_IMPACTS >
< elem TOTAL = "608" >
< AMOUNT > 0 < / AMOUNT >
< / TOTAL >
< CYCLE_START_T > 20/12/2015-00:00:00 < / CYCLE_START_T >
< CYCLE_END_T > 20/01/2016 00:00:00 < / CYCLE_END_T >
< START_T > 20/12/2015-00:00:00 < / START_T >
< END_T > 20/12/2015-00:00:00 < / END_T >
< AMOUNT_GROSS > 490,18 < / AMOUNT_GROSS >
< AMOUNT_TAXED > 0 < / AMOUNT_TAXED >
< / EVENTS >
in my XML file, it apprear 2 < elem = 6 EVENTS > but you just have to remove the entire < elem = 6 EVENTS > with < SYS_DESC >.
Thanks in advance.
Your XML file is invalid because it is not an outside element. In any case, after that...
with Data (THE_XML) as)
Select xmltype (')
0063 63937390517 DATA 20/11/2015-22:08 20/11/2015-22:08 0.89 258 103229 VAT 0.11 4 0.89 VAT 1 1 0.89 ')Cycle advance costs (rev): DUAL-DEF 549 1 Plan 490,18 1 VAT 549 Plan -490.18 32 VTSKY 100% discount 490,18 Tax 58,82 4 VAT -490.18 Tax -58.82 4 VTSKY 0 20/12/2015-00:00:00 20/01/2016 00:00:00 20/12/2015-00:00:00 20/12/2015-00:00:00 490,18 0 of the double
)
Select deletexml (the_xml, "/ ROOT/EVENTS[@elem="6 "and SYS_DESCR]')
from the data
(As requested) RESULT
0063 63937390517 DATA 20/11/2015-22:08 20/11/2015-22:08 0.89 258 103229 VAT 0.11 4 0.89 VAT 1 1 0.89 -
Need help to find and replace grep using Xml tags!
Hello world
I have a Textframe with value ($ 00.00) between two xml tags. a tag for "$" and another for a value (00 h 00).
Now I find these value (00 h 00) and change value (24.10). If I run the script, removing the price tag XML and updated price.
My expectation is the value of these update without deleting the XML tag.
Please suggest me where I made the mistake in the code. Please find the code and screenshot for your reference.
Before running the Script: After running the Script:
Code:
var flgGREP="[$]\\d+[.]\\d+" var Price="$24.10" myLine=app.selection[0]; FindReplaceValue(flgGREP,Price,myLine); function FindReplaceValue(findValue,replaceValue,Sapps){ app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = findValue; app.changeGrepPreferences.changeTo = replaceValue; Sapps.changeGrep(); }
-yajiv
This is because the XML (opening and closing of the representations) tag is a special character but a generic.
So the above grep model fails because you have a text like [TAG] $[TAG] [TAG] 00.00 [TAG] is not picked up by the grep engine.
However there is not (unless I'm wrong) a metacharacter which could identify the brands of tags. You can do this in text F/R, but of course it is not as smooth as grep.
Bad news is that these special characters are not saved if you F/R on a labeled content (I mean in the above case).
Good luck for you is that you seem to know the markupTag that host the price = copy_frame so I'd domething like:
var root = app.activeDocument.xmlElements[0]; var copy_frame_tags = root.evaluateXPathExpression (".//copy_frame" ); var tag; while ( tag = copy_frame_tags.pop() ) { tag.contents=="00.00" && tag.contents="24.10"; }
HTH
Loïc
-
How can I replace a range / the text in an XML tag
I want to replace a piece of text in an XML tag in a text frame.
In my input parameters, I have the In-design page number, UID text frame in this page and the name of the XML tag within this block of text
that surrounds my old text.
which interface/function/command can I use who can help me to replace the existing text with the input text?
for example:
[old text] --> [new text]
where [] is the XML tag with the name tag1.
After a few trails and POC, I was able to write the piece of code below.
It detects the start and end position of the marker and based on that we can replace the text inside. It will be useful.
InterfacePtr
data (signalMgr, UseDefaultIID()); If (data == nil)
{
break;
}
UIDRef docRef = data-> GetDocument();
InterfacePtr
doc (docRef, IID_IDOCUMENT); IDataBase * db = docRef.GetDataBase ();
Get the spread
InterfacePtr
spreadList (doc, UseDefaultIID()); Int32 spreadCount is spreadList-> GetSpreadCount();.
for (int32 spreadIndex = 0; spreadIndex)< spreadcount;="" spreadindex++="">
{
Get the reference to the spread
UIDRef spreadUIDRef (db, spreadList-> GetNthSpreadUID (spreadIndex));
Get the object of dissemination
InterfacePtr
spread (spreadUIDRef, UseDefaultIID()); Int32 numberOfPages = spread-> GetNumPages();
for (int32 nPage = 0; nPage)< numberofpages;="" npage++="">
{
UIDList pageItemList (db);
spread-> GetItemsOnPage (nPage, & pageItemList, kFalse, kFalse);
Browse page items and save on the UID of executives.
Int32 pageItemListLength = pageItemList.Length ();
for (int32 j = 0; j)< pageitemlistlength;="" j++="">
{
UIDRef pageItemRef = pageItemList.GetRef (j);
InterfacePtr
frame (pageItemRef, UseDefaultIID()); If (frame-> IsTextFrame())
{
Now try to get the position of the Guide to the XML tag
TextIndex 0 = startPos, endPos = 0;
IXMLReferenceData * xmlReferenceData = Utils
()-> QueryXMLReferenceData (pageItemRef); REF XMLReference = xmlReferenceData-> GetReference();
IIDXMLElement * element = REF. Instantiate();
InterfacePtr
(REF.). Instantiate()); TagUID UID = element-> GetTagUID();
WideString elementName = element-> GetTagString();
for (int32 i = 0; i < element-=""> GetChildCount(); i ++)
{
ChildRef = element XMLReference-> GetNthChild (i);
InterfacePtr
child_element (childRef.Instantiate ()); tagUID = child_element-> GetTagUID();
elementName = child_element-> GetTagString();
Int32 index = 0;
Utils
()-> GetElementMarkerPositions (child_element, & startPos and endPos); startPos += 1; to proceed exclude the starting tag
}
}
}
} / / Browse pages spread
}
-
How can I delete a XML tag and replace using script? There is a function for adding tags in the document (activeDocument.xmlTags.add("xml-tag")), but I cannot find a corresponding function to delete it and replace it with another, as you would in the GUI.
I tried to accomplish this by changing the name of the tag to one I tried using the code below, but it throws the error: "a label with the same name already exists. Please choose another name. »
for(var i=0;i<xmlTags.length;i++){ xmlTags[i].markupTag.name = "existing-xml-tag"; }
Anyone know of a way around this error or should I use another method entirely?
OK, it was not so difficult to solve. I was looking in the wrong place that's all. Function remove (replaceWith) is available in the XMLTag class. That means that the followin code removes the tag called "p-news-topic" and replaces it with the existing tag called 'p '.
myDoc.xmlTags.itemByName("p-new-section").remove("p");
-
Need help to retrieve the value of an xml tag.
Hi all
Hello all, I have problem to extract a value from an xml tag. I created an xml schema based on the schema, I created an xmltype table and inserted a value to the table. When I try to extract a value of a particular tag I can't do... Kindly help me to solve this problem. Here by I write all working, I did...
I use the following client:
-----------------------------------
SQL * more: Release 10.2.0.1.0 - Production on Mon 31 Jan 11:44: 59 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With partitioning, OLAP and Data Mining options
////////////////////////////////// XML Schema ///////////////////////
Start
() dbms_xmlschema.registerSchema
"http://www.oradev.com/chipsxml.xsd,"
' < scheme xmlns = "http://www.w3.org/2001/XMLSchema".
targetNamespace = "http://www.oradev.com/chipsxml.xsd."
xmlns:SAMP = "http://www.oradev.com/chipsxml.xsd".
version = "1.0" >
< feature name = 'Field1' >
< complexType >
<>sequence
< element name = "UTI" >
< complexType >
<>sequence
< element name = "U01" type = "string" / >
< element name = "U02" type = "string" / >
< element name = "U03" type = "string" / >
< element name = "U03a" type = "string" / >
< element name = "U03b" type = "string" / >
< element name = "U03c" type = "string" / >
< element name = "U04" type = "string" / >
< element name = "U05" type = "string" / >
< / sequence >
< / complexType >
< / item >
< / sequence >
< / complexType >
< / item >
< / schema > ',
(TRUE, TRUE, FALSE, FALSE);
end;
A table that has several column.
CREATE TABLE chipsxmltable1)
Identification number, XMLDATA XmlType)
XMLTYPE XMLDATA STORE AS OBJECT / RELATIONAL
XMLSCHEMA 'http://www.oradev.com/chipsxml.xsd '.
ELEMENT 'field1 ';
Insert the query in chipsxmltable.
INSERT INTO (VALUES) chipsxmltable
XmlType.CreateXml ("<?") XML version = "1.0"? >
< xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
< USE >
No. < U01 > < / U01 >
Y < U02 > < / U02 >
Y < U03 > < / U03 >
< U03a > Y < / U03a >
< U03b > Y < / U03b >
< U03c > Y < / U03c >
Y < U04 > < / U04 >
Y < U05 > < / U05 >
< / UTI >
((< / samp: field1 > '));
To display the data in a field with the structure:
--------------------------------------------
1. motion:
----------
Select * from chipsxmltable1;
Output:
-------
ID XMLDATA
---------- -----------------------------------------------------------------
1 <? XML version = "1.0"? >
< xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
< USE >
No. < U01 > < / U01 >
No. < U02 > < / U02 >
Y < U03 > < / U03 >
< U03a > Y < / U03a >
< U03b > Y < / U03b >
< U03c > Y < / U03c >
Y < U04 > < / U04 >
Y < U05 > < / U05 >
< / UTI >
< / samp: field1 >
2 query: (both the query shows the same result)
----------
SELECT X.xmldata.getClobVal ('XMLDATA' FROM chipsxmltable1 X);
Select extract (XMLDATA, "/ Field1'") .getstringval ("XMLDATA" chipsxmltable1 x);
Output:
--------
XMLDATA
-----------------------------------------------------------------
<? XML version = "1.0"? >
< xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
< USE >
No. < U01 > < / U01 >
No. < U02 > < / U02 >
Y < U03 > < / U03 >
< U03a > Y < / U03a >
< U03b > Y < / U03b >
< U03c > Y < / U03c >
Y < U04 > < / U04 >
Y < U05 > < / U05 >
< / UTI >
< / samp: field1 >
To display the data as a single string without structure using "getstringval()":
---------------------------------------------------------------------------------
3 query
---------
Select extract (XMLDATA, "//text()').getstringval()"CHIPS - XML"of chipsxmltable1 x;)
Output:
-------
CHIPS - XML
---------------------
NoNoYYYYYY
To display the data as a single string without structure using "getclobval()":
---------------------------------------------------------------------------------
4 query
-------
Select extract (XMLDATA, "//text()').getClobVal()"CHIPS - XML"of chipsxmltable1 x;)
Output:
--------
CHIPS - XML
-----------------
NoNoYYYYYY
To display the data in a tag with or without structure (which does work) using the function "EXTRACT":
-------------------------------------------------------------------------------------------------------------
6.query:
---------
Select extract (XMLDATA, "/Field1/text()').getstringval()"XMLDATA' chipsxmltable1 x;
Select extract (XMLDATA, "/Field1/UTI').getstringval()"XMLDATA' chipsxmltable1 x;
Select extract (XMLDATA, "/Field1/UTI/U01').getstringval()"XMLDATA' chipsxmltable1 x;
Select extract (XMLDATA, "/Field1/UTI/U01/text()').getstringval()"XMLDATA' chipsxmltable1 x;
Output:
--------
CHIPS - XML
---------------------------------------
The queries above are not fetch the value.
To display the data in a tag with or without structure (which does work) using the function "EXTRACTVALUE":
------------------------------------------------------------------------------------------------------------------
7 query:
----------
Select extractValue (XMLDATA, ' / Field1/UTI ') 'XMLDATA' of chipsxmltable1 x;
Select extractValue (XMLDATA, ' / U01/UTI/Field1 ') 'XMLDATA' of chipsxmltable1 x;
Output:
--------
X
-
The queries above are not fetch the value.
My question is:
--------------------
How to extract the values of xml tag when the value are inserted through xml schema?
My apologies if the description is not clear. Kindly let me know if further details are required. Thanks a lot for your help.
Very cordially,
Godwin Castro C.V.Hello
You must declare the namespace of each element used in the XPath expression, like this:
SQL> select extractvalue( XMLDATA 2 , '/samp:Field1/UTI/U01' 3 , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"' ) "XMLDATA" 4 from chipsxmltable1 x 5 ; XMLDATA -------------------------------------------------------------------------------- No
SQL> select extract( XMLDATA 2 , '/samp:Field1/UTI' 3 , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"' 4 ).getstringval() "XMLDATA" 5 from chipsxmltable1 x 6 ; XMLDATA --------------------------------------------------------------------------------
No Y Y Y Y Y Y Y Please see EXTRACT and EXTRACTVALUE documentation:
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions051.htm#i1006712
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions052.htm#SQLRF06173BTW, 'XMLDATA' is a pseudo-column used by Oracle. I don't know if it will never cause any conflict, but perhaps you need to rename your column.
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/pseudocolumns010.htm#SQLRF00256Kind regards.
-
Place a 'point' inside xml tags
Hello
I need to insert a point, if a column is empty. But when I use search and replace method removes the tag between the legs. Is it possible to place a point without affecting the xml tags?
app.findGrepPreferences = null; app.changeGrepPreferences = null; app.findGrepPreferences.findWhat="\\t\\t"; app.changeGrepPreferences.changeTo= "\\t.\\t"; app.changeGrep();
Thank you
K
var main = function() { var doc = app.properties.activeDocument, found, n, xe; if ( !doc || app.selection.length!=1 || !app.selection[0].properties.parentStory ) return; sel = app.selection[0]; (sel instanceof TextFrame) && sel = sel.parentStory; var xes = sel.associatedXMLElements; n = xes.length; while ( n-- ) { xe = xes[n]; xe.contents=="" && xe.contents="."; } } main();
-
Extract the value between the xml tags in the XML inside the BLOB field
Hello
I have a table that contains a BLOB column, this XML file to store column that received from an external source. Now for one of my needs. I need to read that value is the specific XML tag and create the entry in the database.
Column name DataType ID Number Record BLOB OBJECT This is the XML code that is stored in the file inside the BLOB field format. XML below, I need go get AMC1234 there is after < itemName > text < / itemName > I thought to use XMLTYPE, but unfortunately my DBA team does not XML database, I now use UTL_RAW. CAST_TO_VARCHAR2 and recovery entire string, but I am not able to read actual result it takes. Can someone help me remove AMC1234.
<? XML version = "1.0"? >
<! DOCTYPE importFile SYSTEM "xyz.dtd" >
-< importFile >
-< importResult >
< mode status = "DΘFINIR" > general failure < / status >
< statusCode > 1 < / statusCode >
invalid < errorMsg > list and holiday component < / errorMsg >
-< returnInfo >
< itemName > PRQ < / itemName >
< Valeurelement > CBA < / Valeurelement >
< / returnInfo >
-< returnInfo >
< itemName > LMP < / itemName >
< Valeurelement > CBA < / Valeurelement >
< / returnInfo >
-< returnInfo >
< itemName > KEY < / itemName >
< Valeurelement > 9999 < / Valeurelement >
< / returnInfo >
-< returnInfo >
< itemName > text < / itemName >
< Valeurelement > AMC1234, FIXED_ALL, RED < / Valeurelement >
< / returnInfo >
< / importResult >
< / importFile >
Thank you
Without
Without - try something like...
with t as (select"
-
"the double pass."-
General failure 1 component and invalid vacation list -
PRQ ABC -
LMP ABC -
KEY 9999 -
Text AMC1234, FIXED_ALL, RED )
Select Replace (regexp_substr (col,'
([^<> ']) itemName)) , replace (regexp_substr (col,'
([^<> ""]) Valeurelement)) t
connection of level <=>=>
'); -
Extract the XML tags and insert into the table
Description:
XML is under inert atmosphere in the table containing the xmltype column. Need to extract value from xml tag and insert into the table.
Once the XML record Treaty must update the status as 'Y' in the base tableProblem:
There are multiple occurrences of some tags that need to be combined and stored in a single column to delineate the '-'. No. area of occurrence can vary for each record.
There are a few encrypted column that I managed to convert decoded value. But used select distinct... XMLTYPE...
GTT table is used to store the intermediate result and decoding and the concatenation of several tags occurred using TWG.1.No. multiple tag will vary how to extract those and concatenate them into a single column. I assumed his occrrence in 3 for example: < student >
2. how to set the value NULL if no tag is not present. Tag in XML record number can vary. I know that the complete list of xmltags.
3 data not found error for some xml documents.Kindly Assits how to achieve this.
version: 11.2.0.3.0
Table Base: temp_XML
XML_ID NOT NULL NUMBER (28) - auto-increment using the sequence
PUBLIC EVENT. Stores the XMLTYPE STORAGE BINARY - XML file
DATE OF EVTDATE
STATUS VARCHAR2 (3) DEFAULT ' don'tSample XML: Includes all the brands mentioned in the common procedure below.
<? XML version = "1.0" encoding = "US-ASCII"? >
"< event xmlns ="http://xmlextrac.test.com/object">."
< data xmlns = "" >
< object >
<>units
< unit > TLAS < / unit >
< unit > ATLAS < / unit >
< / units >
< receiverNetworks >
< receiverNetwork > ABSAZAJ0XXXX < / receiverNetwork >
< / receiverNetworks >
< correspondentIds >
< correspondentId > #SWF - ABSAZAJ0XXX < / correspondentId >
< / correspondentIds >
< comment >
< comment / >
< comment / >
< comment / >
< comment / >
< / comment >
< memo >
< memo > 28 < / memo >
< / memos >
< tuxedoPriority > 20 < / tuxedoPriority >
sender <>Mike < / sender >
< typeReseauId > Message < / typeReseauId >
< maxRetry > 4 < / maxRetry >
< msgSecuLevel > CBA < / msgSecuLevel >
< quantity >
< amount > 12 < / amount >
< amount > 34 < / amount >
< amount > 56 < / amount >
< / amounts >
< currencys >
< currency > $ < / currency >
< currency > EUR < / currency >
INR < currency > < / currency >
< / currencys >
< msgDateVal > ARST123 < / msgDateVal >
wder < direction > < / direction >
< eventType > 113 < / eventType >
< date > 1407431619 < / date >
< eventDate > 1407431624 < / eventDate >
< management > R < / direction >
< msgRef > R950140807AB6CBE < / msgRef >
< format > SWF < / size >
< type > 950 < / type >
R950140807AB6CBE < WALL > < / WALL >
< bankingPriority / >
FSDS < field.20 > < / field.20 >
< texteType > FSS < / texteType >
< applicationCode > OHS < / applicationCode >
< company > KETH < / company >
< endFct > MOE < / endFct >
< rate > BAM < / flow >
< subtype / >
< text > DQo6MjA6R0wxNDA4MDcwMDA1MTMNCjoyNTo3M == < / text >
< msgHeaders > ezE6RjAxTE9ZRE5MMjBCWFhYMDAzMjAw = < / msgHeaders >
< msgTrailer > ezU6e0NISzpEOUFFRUNCN0NBQTl9e1RORzp9fQ == < / msgTrailer >
< / object >
< / data >
Procedure: This works very well for a few xml record and fails for some.
CREATE OR REPLACE PROCEDURE XML_EXTR
AS
CURSOR c1
IS
SELECT * FROM temp_XML;c1_cur c1% ROWTYPE;
bamdata_sql VARCHAR2 (3000);
d_text VARCHAR2 (3000);
d_msgHeaders VARCHAR2 (3000);
d_msgTrailer VARCHAR2 (3000);
x_text VARCHAR2 (3000);
x_msgHeaders VARCHAR2 (3000);
x_msgTrailer VARCHAR2 (3000);
x_eventType VARCHAR2 (3000);
x_amount number (28.2).
x_currency VARCHAR2 (3000);
x_state VARCHAR2 (3000);
x_units VARCHAR2 (3000);
x_correspondentId VARCHAR2 (3000);
X_TYPE VARCHAR2 (3000);
x_receiverNetworks VARCHAR2 (3000);
x_bankingPriority VARCHAR2 (3000);
x_applicationCode VARCHAR2 (3000);
x_processCounter VARCHAR2 (3000);
x_obsolescence VARCHAR2 (3000);
x_maxRetry VARCHAR2 (3000);
x_retries VARCHAR2 (3000);
x_fileSize VARCHAR2 (3000);
x_endFct VARCHAR2 (3000);
x_subType VARCHAR2 (3000);
x_field20 VARCHAR2 (3000);
x_sequenceNumber VARCHAR2 (3000);
x_requestorDn VARCHAR2 (3000);
x_responderDn VARCHAR2 (3000);
x_SWIFTNetService VARCHAR2 (3000);
x_transfertRef VARCHAR2 (3000);
x_nonrepudiation VARCHAR2 (3000);
x_transfertInfo VARCHAR2 (3000);
x_fileDesc VARCHAR2 (3000);
x_transfertDesc VARCHAR2 (3000);
x_logicalName VARCHAR2 (3000);
x_signIndicator VARCHAR2 (3000);
x_critId VARCHAR2 (3000);
x_inFapId VARCHAR2 (3000);
x_deliveryNotif VARCHAR2 (3000);
x_comment1 VARCHAR2 (3000);
x_comment2 VARCHAR2 (3000);
x_comment3 VARCHAR2 (3000);
x_comment4 VARCHAR2 (3000);
x_comments VARCHAR2 (3000);
x_memo1 VARCHAR2 (3000);
x_memo2 VARCHAR2 (3000);
x_memo3 VARCHAR2 (3000);
x_memo4 VARCHAR2 (3000);
x_msgSecuLevel VARCHAR2 (3000);
x_dates VARCHAR2 (3000);
x_tuxedoPriority VARCHAR2 (3000);
x_fileDest VARCHAR2 (3000);
x_stkMsgPDEId VARCHAR2 (3000);
x_EMTId VARCHAR2 (3000);
x_LTRcptSyno VARCHAR2 (3000);
x_LTRcpt VARCHAR2 (3000);
x_LTEmis VARCHAR2 (3000);
x_flow VARCHAR2 (3000);
x_FINCopy VARCHAR2 (3000);
x_msgDateVal VARCHAR2 (3000);
x_eventDate VARCHAR2 (3000);
x_typeReseauId VARCHAR2 (3000);
x_inFapSeq1 VARCHAR2 (3000);
x_inFapSeq2 VARCHAR2 (3000);
x_direction VARCHAR2 (3000);
x_priority VARCHAR2 (3000);
x_ack VARCHAR2 (3000);
x_format VARCHAR2 (3000);
x_mur VARCHAR2 (3000);
x_TexteType VARCHAR2 (3000);
x_creatingUser VARCHAR2 (3000);
x_fileinfo VARCHAR2 (3000);
x_company VARCHAR2 (3000);
x_language VARCHAR2 (3000);
x_ackText VARCHAR2 (3000);
x_jaxbRef VARCHAR2 (3000);
x_jaxbElt VARCHAR2 (3000);
x_memos VARCHAR2 (3000);
xmlid number (28);
x_msgRef1 VARCHAR2 (3000);
x_msgRef2 VARCHAR2 (3000);
x_msgRef3 VARCHAR2 (3000);
x_msgRef4 VARCHAR2 (3000);
x_sender VARCHAR2 (3000);
x_amlBehavior VARCHAR2 (3000);
x_ownerServiceId VARCHAR2 (3000);
x_correspondentName VARCHAR2 (3000);
x_correspondentAddress1 VARCHAR2 (3000);
x_correspondentAddress2 VARCHAR2 (3000);
x_correspondentAddress3 VARCHAR2 (3000);
x_correspondentAddress4 VARCHAR2 (3000);
x_correspondentCity VARCHAR2 (3000);
x_correspondentCountry VARCHAR2 (3000);
x_correspondentNetworkAddr VARCHAR2 (3000);
x_tested VARCHAR2 (3000);
x_correspondentNetwork VARCHAR2 (3000);
x_validatedPercentage VARCHAR2 (3000);
x_nbOfValid VARCHAR2 (3000);
x_requestRef VARCHAR2 (3000);
x_notifQueue VARCHAR2 (3000);
x_requestType VARCHAR2 (3000);
x_secBpid VARCHAR2 (3000);
x_queue VARCHAR2 (3000);
x_receiverCode VARCHAR2 (3000);
x_receiverInd VARCHAR2 (3000);
x_validFlag VARCHAR2 (3000);
x_ownerId VARCHAR2 (3000);
x_dn VARCHAR2 (3000);
x_RMAOurBic VARCHAR2 (3000);
x_RMACorrespondentBic VARCHAR2 (3000);
x_RMAService VARCHAR2 (3000);
x_fileMsgRef VARCHAR2 (3000);
date of x_ext_date;
x_correspondentAddress VARCHAR2 (3000);
x_msgrefs varchar2 (3000);
d_ackText varchar2 (3000);
ackText varchar2 (3000);
date of x_extdate;BEGIN
FOR C1_CUR IN C1
LOOP
INSERT INTO data_GTT_TEMP)
eventType, amount, currency, State, units, correspondentId, sender, receiverNetworks, bankingPriority, applicationCode, processCounter.
obsolescence, maxRetry, reminders, fileSize, endFct, xsubType, field.20, sequenceNumber, requestorDn, responderDn, SWIFTNetService, non-repudiation,
transfertRef, transfertInfo, fileDesc, transfertDesc, logicalName, signIndicator, critId, inFapId, deliveryNotif, comment1, comment2, comment3, comment4,
Memo1, memo2, memo3, memo4, msgSecuLevel, dates, tuxedoPriority, fileDest, stkMsgPDEId, EMTId, LTRcptSyno, LTRcpt, LTEmis, flow, FINCopy, msgDateVal,
eventDate, typeReseauId, inFapSeq1, inFapSeq2, direction, priority, ack,
msgRef1, msgRef2, msgRef3, msgRef4, amlbehavior, correspondentName, ownerServiceId,
correspondentAddress1, correspondentAddress2, correspondentAddress3, correspondentAddress4,
correspondentCity, correspondentCountry, correspondentNetworkAddr, tested,
correspondentNetwork, validatedPercentage, nbOfValid, requestRef, notifQueue,
requestType, secBpid, xqueue, receiverCode, receiverInd, validFlag, ownerId, dn, RMAOurBic, RMACorrespondentBic, RMAService,
fileMsgRef, format, xtype, wall, TexteType, creatingUser, fileinfo,
company, text, xlanguage, ackText, msgHeaders, msgTrailer, jaxbRef, jaxbElt)
SELECT
x.eventType, x.amount, x.currency, x.state, x.units, x.correspondentId, x.sender, x.receiverNetworks, x.bankingPriority, x.applicationCode, x.processCounter,
x.obsolescence, x.maxRetry, x.Retries, x.FileSize, x.endFct, x.xsubType, x.Field20, x.SequenceNumber, x.requestorDn, x.responderDn, x.SWIFTNetService, x.nonRepudiation,
x.transfertRef, x.transfertInfo, x.fileDesc, x.transfertDesc, x.logicalName, x.signIndicator, x.critId, x.inFapId, x.deliveryNotif, x.comment1, x.comment2,
x.comment3, x.comment4, x.Memo1, x.memo2, x.memo3, x.MEMO4, x.msgSecuLevel, x.dates, x.tuxedoPriority, x.fileDest, x.stkMsgPDEId, x.EMTId, x.LTRcptSyno,
x.LTRcpt, x.LTEmis, x.flow, x.FINCopy, x.msgDateVal, x.eventDate, x.typeReseauId, x.inFapSeq1, x.inFapSeq2, x.direction, x.priority, x.ack,
x.msgRef1, x.msgRef2, x.msgRef3, x.msgRef4, x.amlbehavior, x.correspondentName, x.ownerServiceId,
x.correspondentAddress1, x.correspondentAddress2, x.correspondentAddress3, x.correspondentAddress4,
x.correspondentCity, x.correspondentCountry, x.correspondentNetworkAddr, x.tested,
x.correspondentNetwork, x.validatedPercentage, x.nbOfValid, x.requestRef, x.notifQueue,
x.requestType, x.secBpid, x.xqueue, x.receiverCode, x.receiverInd, x.validFlag, x.ownerId, x.dn, x.RMAOurBic, x.RMACorrespondentBic, x.RMAService,
x.fileMsgRef, x.format, x.xtype, x.mur, x.TexteType, x.creatingUser, x.fileinfo,
x.Company, x.Text, x.xLanguage, x.ackText, x.msgHeaders, x.msgTrailer, x.jaxbRef, x.jaxbEltof temp_XML t, XMLTABLE (XMLNAMESPACES ('http://xmlextrac.test.com/object' as "ns0"), ' / ns0:event' )
PASSAGE t.BAM_EVENT COLUMNS
eventType varchar2 (3000) PATH 'data, object, eventType' DEFAULT NULL,
amount number (28.2) path data/object/amounts"."
currency varchar2 (3000) PATH 'data, object, currencys, currency' DEFAULT NULL,
VARCHAR2 (3000) path "data/object / / state of ' DEFAULT NULL, State
units varchar2 (3000) PATH ' object/data/units' DEFAULT NULL,
correspondentId varchar2 (3000) PATH "data/object/correspondentIds' DEFAULT NULL,
sender varchar2 (3000) PATH 'data, object, sender' DEFAULT NULL,
receiverNetworks varchar2 (3000) PATH "data/object/receiverNetworks' DEFAULT NULL,
bankingPriority varchar2 (3000) PATH "data/object/bankingPriority' DEFAULT NULL,
applicationCode varchar2 (3000) PATH ' object/data/applicationCode' DEFAULT NULL,
processCounter varchar2 (3000) PATH "data/object/processCounter' DEFAULT NULL,
obsolescence varchar2 (3000) PATH ' data/object/obsolescence' DEFAULT NULL,
maxRetry varchar2 (3000) PATH ' data/object/maxRetry' DEFAULT NULL,
attempts to varchar2 (3000) "data/object/attempts" DEFAULT NULL path,.
size of the file varchar2 (3000) PATH ' data/object/fileSize' DEFAULT NULL,
endFct varchar2 (3000) PATH "data/object/endFct' DEFAULT NULL,
xsubType varchar2 (3000) PATH "data/object/subtype' DEFAULT NULL,
field.20 varchar2 (3000) PATH ' object/data/field.20' DEFAULT NULL,
sequenceNumber varchar2 (3000) PATH "data/object/sequenceNumber" DEFAULT NULL,
requestorDn varchar2 (3000) PATH "data/object/requestorDn' DEFAULT NULL,
responderDn varchar2 (3000) PATH "data/object/responderDn' DEFAULT NULL,
SWIFTNetService varchar2 (3000) PATH "data/object/SWIFTNetService' DEFAULT NULL,
non-repudiation varchar2 (3000) PATH ' object/data/repudiation' DEFAULT NULL,
transfertRef varchar2 (3000) PATH "data/object/transfertRef' DEFAULT NULL,
transfertInfo varchar2 (3000) PATH "data/object/transfertInfo' DEFAULT NULL,
fileDesc varchar2 (3000) PATH "data/object/fileDesc' DEFAULT NULL,
transfertDesc varchar2 (3000) PATH "data/object/transfertDesc' DEFAULT NULL,
logicalName varchar2 (3000) PATH "data/object/logicalName" DEFAULT NULL,
signIndicator varchar2 (3000) PATH "data/object/signIndicator' DEFAULT NULL,
critId varchar2 (3000) PATH "data/object/critId' DEFAULT NULL,
inFapId varchar2 (3000) PATH "data/object/inFapId' DEFAULT NULL,
deliveryNotif varchar2 (3000) PATH "data/object/deliveryNotif' DEFAULT NULL,
COMMENT1 varchar2 (3000) PATH ' data, subject, comments, comment [1] "DEFAULT NULL,
comment2 varchar2 (3000) PATH 'data, subject, comments, how [2]' DEFAULT NULL,
comment3 varchar2 (3000) PATH "data/object/observations/comments [3]" DEFAULT NULL,
comment4, varchar2 (3000) PATH ' data, subject, comments, comment [4] "DEFAULT NULL,
Memo1 varchar2 (3000) PATH "data/object/memos/memo [1]" DEFAULT NULL,
Memo2 varchar2 (3000) PATH "data/object/notes/Notes [2]" DEFAULT NULL,
memo3 varchar2 (3000) PATH "data/object/memos/memo [3]" DEFAULT NULL,
MEMO4 varchar2 (3000) PATH "data/object/memos/memo [4]" DEFAULT NULL,
msgSecuLevel varchar2 (3000) PATH "data/object/msgSecuLevel' DEFAULT NULL,
Date varchar2 (3000) PATH ' object/data/date' DEFAULT NULL,
tuxedoPriority varchar2 (3000) PATH "data/object/tuxedoPriority' DEFAULT NULL,
fileDest varchar2 (3000) PATH "data/object/fileDest' DEFAULT NULL,
stkMsgPDEId varchar2 (3000) PATH "data/object/stkMsgPDEId' DEFAULT NULL,
EMTId varchar2 (3000) PATH "data/object/EMTId' DEFAULT NULL,
LTRcptSyno varchar2 (3000) PATH "data/object/LTRcptSyno' DEFAULT NULL,
LTRcpt varchar2 (3000) PATH "data/object/LTRcpt' DEFAULT NULL,
LTEmis varchar2 (3000) PATH "data/object/LTEmis' DEFAULT NULL,
flow varchar2 (3000) PATH "/ object/data flow ' DEFAULT NULL,
FINCopy varchar2 (3000) PATH ' data/object/FINCopy' DEFAULT NULL,
msgDateVal varchar2 (3000) PATH "data/object/msgDateVal' DEFAULT NULL,
eventDate varchar2 (3000) PATH "data/object/eventDate" DEFAULT NULL,
typeReseauId varchar2 (3000) PATH "data/object/typeReseauId' DEFAULT NULL,
inFapSeq1 varchar2 (3000) PATH "data/object/inFapSeq1' DEFAULT NULL,
inFapSeq2 varchar2 (3000) PATH "data/object/inFapSeq2' DEFAULT NULL,
direction varchar2 (3000) PATH 'data, object, direction' DEFAULT NULL,
priority varchar2 (3000) PATH ' data/object/priority' DEFAULT NULL,
ACK varchar2 (3000) PATH ' object/data/ack' DEFAULT NULL,
msgRef1 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [1] "DEFAULT NULL,
msgRef2 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [2] "DEFAULT NULL,
msgRef3 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [3] "DEFAULT NULL,
msgRef4 varchar2 (3000) PATH ' data, object, msgRefs, msgRef [4] "DEFAULT NULL,
amlBehavior varchar2 (3000) PATH "data/object/amlBehavior' DEFAULT NULL,
ownerServiceId varchar2 (3000) PATH "data/object/ownerServiceId' DEFAULT NULL,
correspondentName varchar2 (3000) PATH ' data/object/correspondentName' DEFAULT NULL,
PATH of VARCHAR2 (3000) of correspondentAddress1 ' object/data/correspondentLine1Addresse' DEFAULT NULL,
PATH of VARCHAR2 (3000) of correspondentAddress2 ' object/data/correspondentLine2Addresse' DEFAULT NULL,
PATH of VARCHAR2 (3000) of correspondentAddress3 ' object/data/correspondentLine3Addresse' DEFAULT NULL,
PATH of VARCHAR2 (3000) of correspondentAddress4 ' object/data/correspondentLine4Addresse' DEFAULT NULL,
correspondentCity PATH VARCHAR2 (3000) ' object/data/correspondentCity' DEFAULT NULL,
correspondentCountry PATH VARCHAR2 (3000) ' object/data/correspondentCountry' DEFAULT NULL,
correspondentNetworkAddr PATH VARCHAR2 (3000) ' object/data/correspondentNetworkAddr' DEFAULT NULL,
tested VARCHAR2 (3000) PATH ' data/object/tested' DEFAULT NULL,
correspondentNetwork PATH VARCHAR2 (3000) ' object/data/correspondentNetwork' DEFAULT NULL,
validatedPercentage PATH VARCHAR2 (3000) ' object/data/validatedPercentage' DEFAULT NULL,
nbOfValid PATH VARCHAR2 (3000) ' object/data/nbOfValid' DEFAULT NULL,
requestRef VARCHAR2 (3000) PATH ' data/object/requestRef' DEFAULT NULL,
notifQueue PATH VARCHAR2 (3000) ' object/data/notifQueue' DEFAULT NULL,
requestType PATH VARCHAR2 (3000) ' data/object/requestType' DEFAULT NULL,
secBpid PATH VARCHAR2 (3000) ' object/data/secBpid' DEFAULT NULL,
xqueue PATH VARCHAR2 (3000) ' data/object/tail' DEFAULT NULL,
receiverCode PATH VARCHAR2 (3000) ' object/data/receiverCode' DEFAULT NULL,
receiverInd PATH VARCHAR2 (3000) ' object/data/receiverInd' DEFAULT NULL,
validFlag PATH VARCHAR2 (3000) ' object/data/validFlag' DEFAULT NULL,
ownerId PATH VARCHAR2 (3000) ' data/object/ownerId' DEFAULT NULL,
DN VARCHAR2 (3000) PATH ' data/object/dn' DEFAULT NULL,
PATH of VARCHAR2 (3000) of RMAOurBic ' object/data/RMAOurBic' DEFAULT NULL,
PATH of VARCHAR2 (3000) of RMACorrespondentBic ' object/data/RMACorrespondentBic' DEFAULT NULL,
PATH of VARCHAR2 (3000) of RMAService ' object/data/RMAService' DEFAULT NULL,
fileMsgRef PATH VARCHAR2 (3000) ' object/data/fileMsgRef' DEFAULT NULL,
ackText varchar2 (3000) PATH "data/object/ackText' DEFAULT NULL,
format varchar2 (3000) PATH "data/object / ' DEFAULT NULL,
xType varchar2 (3000) PATH ' data/object/type' DEFAULT NULL,
Wall varchar2 (3000) PATH ' data/object/wall' DEFAULT NULL,
texteType varchar2 (3000) PATH "data/object/texteType' DEFAULT NULL,
creatingUser varchar2 (3000) PATH ' data/object/creatingUser' DEFAULT NULL,
fileInfo varchar2 (3000) PATH ' data/object/fileInfo' DEFAULT NULL,
VARCHAR2 (3000) path ' data/object/society' DEFAULT NULL, the company
VARCHAR2 (3000) text ' data/object/text' DEFAULT NULL path.
xLanguage varchar2 (3000) PATH ' data/object/language' DEFAULT NULL,
msgHeaders varchar2 (3000) PATH "data/object/msgHeaders' DEFAULT NULL,
msgTrailer varchar2 (3000) PATH "data/object/msgTrailer' DEFAULT NULL,
jaxbRef varchar2 (3000) PATH ' info/jaxbRef' DEFAULT NULL,
jaxbElt varchar2 (3000) PATH "jaxbElt/info") x
where t.XML_ID = c1_cur. XML_ID and t.status =' no;Select x.text, x.msgHeaders, x.msgTrailer in x_msgTrailer, x_msgHeaders, x_text of
temp_XML t, XMLTABLE (XMLNAMESPACES ('http://xmlextrac.test.com/object' as "ns0"), ' / ns0:event' )
PASSAGE t.BAM_EVENT COLUMNS
text varchar2 (3000) PATH data/object/text"."
msgHeaders varchar2 (3000) PATH "data/object/msgHeaders,"
msgTrailer varchar2 (3000) PATH "object/data/msgTrailer.
) x
where t.XML_ID = c1_cur. XML_ID;
Select sysdate in double x_extdate;
d_text: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (x_text)));
d_msgHeaders: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (x_msgHeaders)));
d_msgTrailer: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (x_msgTrailer)));
-d_ackText: = utl_raw.cast_to_varchar2 (utl_encode.base64_decode (utl_raw.cast_to_RAW (ackText)));Select
EventType, amount, currency, State, units, correspondentid, sender, receivernetworks, bankingpriority,
applicationcode, processcounter, obsolescence, maxretry, reminders, filesize, endfct, xsubtype, field.20, sequencenumber, requestordn,
responderdn, swiftnetservice, non repudiation, transfertref, transfertinfo, filedesc, transfertdesc, logicalname, signindicator,
critid, infapid, deliverynotif, comment1, comment2, comment3, comment4, memo1, memo2, memo3, memo4, msgseculevel, dates, tuxedopriority, filedest,
stkmsgpdeid, emtid, ltrcptsyno, ltrcpt, ltemis, flow, fincopy, msgdateval, eventdate, typereseauid, infapseq1,
infapseq2, direction, priority, ack, msgref1, msgref2, msgref3, msgref4, amlbehavior, ownerserviceid, correspondentname, correspondentaddress1, correspondentaddress2, correspondentaddress3, correspondentaddress4,
correspondentcity, correspondentcountry, correspondentnetworkaddr, test, correspondentnetwork, validatedpercentage, nbofvalid,.
requestref, notifqueue, requesttype, secbpid, xqueue, receivercode, receiverind, validflag, ownerid, dn, rmaourbic, rmacorrespondentbic, rmaservice, filemsgref,
acktext, format, xtype, wall, textetype, creatinguser, fileinfo, society, text, xlanguage, msgheaders, msgtrailer, jaxbref, jaxbelt
in
x_eventtype, x_amount, x_currency, x_state, x_units, x_correspondentid, x_sender, x_receivernetworks, x_bankingpriority, x_applicationcode, x_processcounter,
x_obsolescence, x_maxretry, x_retries, x_filesize, x_endfct, x_subtype, x_field20, x_sequencenumber, x_requestordn, x_responderdn, x_swiftnetservice, x_nonrepudiation,
x_transfertref, x_transfertinfo, x_filedesc, x_transfertdesc, x_logicalname, x_signindicator, x_critid, x_infapid, x_deliverynotif, x_comment1, x_comment2, x_comment3,
x_comment4, x_memo1, x_memo2, x_memo3, x_memo4, x_msgseculevel, x_dates, x_tuxedopriority, x_filedest, x_stkmsgpdeid, x_emtid, x_ltrcptsyno, x_ltrcpt,
x_ltemis, x_flow, x_fincopy, x_msgdateval, x_eventdate, x_typereseauid, x_infapseq1, x_infapseq2, x_direction, x_priority, x_ack, x_msgref1, x_msgref2,
x_msgref3, x_msgref4, x_amlbehavior, x_ownerserviceid, x_correspondentname, x_correspondentaddress1, x_correspondentaddress2, x_correspondentaddress3,
x_correspondentaddress4, x_correspondentcity, x_correspondentcountry, x_correspondentnetworkaddr, x_tested, x_correspondentnetwork, x_validatedpercentage,
x_nbofvalid, x_requestref, x_notifqueue, x_requesttype, x_secbpid, x_queue, x_receivercode, x_receiverind, x_validflag, x_ownerid, x_dn, x_rmaourbic,
x_rmacorrespondentbic, x_rmaservice, x_filemsgref, x_acktext, x_format, x_type, x_mur, x_textetype, x_creatinguser, x_fileinfo, x_company, x_text,
x_language, x_msgheaders, x_msgtrailer, x_jaxbref, data_GTT_TEMP x_jaxbelt;x_memos: = x_memo1 | » -'|| x_memo2 | » -'|| x_memo3 | » -'|| x_memo4;
x_comments: = x_comment1 | » -'|| x_comment2 | » -'|| x_comment3 | » -'|| x_comment4;
x_correspondentAddress: = x_correspondentAddress1 | » -'|| x_correspondentAddress2 | » -'|| x_correspondentAddress3 | » -'|| x_correspondentAddress4;
x_msgrefs: = x_msgRef1 | » -'|| x_msgRef2 | » -'|| x_msgRef3 | » -'|| x_msgRef4;BEGIN
insert into donnees_xml
(xml_id, x_ext_date, eventtype, amount, currency, State, unit, correspondentid, sender, receivernetworks, bankingpriority, applicationcode,
ProcessCounter, obsolescence, maxretry, reminders, filesize, endfct, xsubtype, field.20, sequencenumber, requestordn, responderdn,
swiftnetservice, non repudiation, transfertref, transfertinfo, filedesc, transfertdesc, logicalname, signindicator, critid, infapid,
deliverynotif, comments, notes, msgseculevel, dates, tuxedopriority, filedest, stkmsgpdeid, emtid, ltrcptsyno, ltrcpt, ltemis, flow,
FINCopy, msgdateval, eventdate, typereseauid, infapseq1, infapseq2, direction, priority, ack, msgrefs, amlbehavior, ownerserviceid,
correspondentName correspondentaddress, correspondentcity, correspondentcountry, correspondentnetworkaddr, tested,
correspondentnetwork, validatedpercentage, nbofvalid, requestref, notifqueue, requesttype, secbpid, xqueue, receivercode,
receiverind, validflag, ownerid, dn, rmaourbic, rmacorrespondentbic, rmaservice, filemsgref, acktext, format, xtype, wall,
textetype, creatinguser, fileinfo, society, text, xlanguage, msgheaders, msgtrailer, jaxbref, jaxbelt)
values
(xmlid, x_extdate, x_eventType, x_amount, x_currency, x_state, x_units, x_correspondentId, x_sender, x_receiverNetworks, x_bankingPriority, x_applicationCode,
x_processCounter, x_obsolescence, x_maxRetry, x_retries, x_fileSize, x_endFct, x_subType, x_field20, x_sequenceNumber, x_requestorDn, x_responderDn,
x_SWIFTNetService, x_nonRepudiation, x_transfertRef, x_transfertInfo, x_fileDesc, x_transfertDesc, x_logicalName, x_signIndicator, x_critId, x_inFapId,
x_deliveryNotif, x_comments, x_memos, x_msgSecuLevel, x_dates, x_tuxedoPriority, x_fileDest, x_stkMsgPDEId, x_EMTId, x_LTRcptSyno, x_LTRcpt, x_LTEmis, x_flow,
x_FINCopy, x_msgDateVal, x_eventDate, x_typeReseauId, x_inFapSeq1, x_inFapSeq2, x_direction, x_priority, x_ack, x_msgrefs, x_amlbehavior, x_ownerServiceId,
x_correspondentName, x_correspondentAddress, x_correspondentCity, x_correspondentCountry, x_correspondentnetworkaddr, x_tested,
x_correspondentNetwork, x_validatedPercentage, x_nbOfValid, x_requestRef, x_notifQueue, x_requestType, x_secBpid, x_queue, x_receiverCode,
x_receiverInd, x_validFlag, x_ownerId, x_dn, x_RMAOurBic, x_RMACorrespondentBic, x_RMAService, x_fileMsgRef, ackText, x_format, x_type, x_mur,
x_TexteType, x_creatingUser, x_fileinfo, x_company d_text, x_language, d_msgHeaders, d_msgTrailer, x_jaxbRef, x_jaxbElt);Update temp_XML set status = 'Y' where XML_ID = xmlid;
END;
COMMIT;
END LOOP;
END;
/1.No. multiple tag will vary how to extract those and concatenate them into a single column. I assumed that his occrrence in 3 for example:
Use the fn:string-join() function:
path varchar2 (4000) of comments 'string-join(comments/comment, "-").
2. how to set the value NULL if no tag is not present. Tag in XML record number can vary.
You don't have anything specific to do in this case.
Missing tags with a projection in the COLUMNS clause will produce a column NULL by default.
-
Concatenate the nested XML tags
Hello
I am looking for a solution concatenate duplicate in an xml tags.
I need only the tags 'tag' 'type = keyword' in a field in a table.
The sql statement that I use, I get six records and I just need a registration.
Hope that my written English is not hard to understand what I mean.
It is a part of the XML data.
<? XML version = "1.0" encoding = "UTF - 8"? >
< list >
< article id = "25230245" title = "st" publish = "true" sender =">
< categories >
< naam category = "Staking" externalid = "Economy/staking" / >
< / categories >
< geoinfo latitude =' 52,3936' longitude' 6,142065 =' zoom = "15" / >
< tags >
< tag name = 'Overijssel, Raalte, Raalte' type = 'rental' / >
< tag name = 'Overijssel, Deventer, Deventer' type = 'rental' / >
< tag name = 'Overijssel Olst-Wijhe Wijhe' type = 'rental' / >
< tag name = "CAD" type = "keyword" / >
< name of tag = "vleeswarensector" type = "keyword" / >
< name of tag = "seniorenregeling" type = "keyword" / >
< tag name = "fnv bondgenoten" type = "Keyword" / >
< name of tag = "werkonderbreking" type = "keyword" / >
< tag name = 'Zwanenburg' type = "Keyword" / >
< tag name = "staking" type = "Keyword" / >
< tag name = "Scott" type = "Keyword" / >
< name of tag = "La¼pack" type = "keyword" / >
< tag name = "cnv vakmensen" type = "Keyword" / >
< / tags >
< publicatiedatum datum = '1400663902374' datumstr ='2014 - 05-21T 11: 18:00 + 0200 "/ >"
< wijzigingsdatum datum = '1400663902374' datumstr ='2014 - 05-21T 11: 18:00 + 0200 "/ >"
< printdatum datumstr = May 22, 2014 "/ >"
< bestemming >
< bestemming channel = 'web' site = 'ST' page =' Regio/Deventer /' primary = "false" / >
< bestemming channel = 'web' site = 'ST' page =' Regio/Olst-Wijhe /' primary = "false" / >
< bestemming channel = 'web' site = 'ST' page =' Regio/Raalte /' primary = "true" / >
< / bestemming >
< bron naam = "Benny Koerhuis" / >
< figurines / >
< / product >
< / list >
And it's my sql (part of a plsql procedure) statement.
SELECT decode (upper (t1.publish), 'TRUE', 'Y', 'n')
, trunc (to_date (substr (replace (t1.pdate, 't',' '), 1, 19), "YYYY-MM-DD HH24:MI:SS")) update
, to_date (substr (replace (t1.flitstijd, 't',' '), 1, 19), "YYYY-MM-DD HH24:MI:SS") flitstijd
t1.naam_flitser
t1.sectie
t1.titel
t1.soort
t2.trefwoorden
OF flits_berichten_clob t1
, XMLTABLE ("' / / test/artikel")
By the WAY of XMLTYPE (t1.xml_file)
COLUMNS publish VARCHAR2 (10) path '@publish '.
update the PATH in VARCHAR2 (25) "publicatiedatum/@datumstr".
, flitstijd PATH VARCHAR2 (25) "wijzigingsdatum/@datumstr".
, naam_flitser PATH VARCHAR2 (25) "bron/@naam".
, books VARCHAR2 (255) PATH 'bestemmingen/bestemming[@primary="true"]/@page '.
, titel VARCHAR2 (10) path 'bestemmingen/bestemming[@primary="true"]/@site '.
, soort PATH VARCHAR2 (10) 'bestemmingen/bestemming[@primary="true"]/@channel '.
tags XMLTYPE PATH 'tags') t1
, XMLTABLE ('/ tags/tag [@type = "keyword"] ")
PASSAGE t1.tags
T2 of COLUMNS trefwoorden VARCHAR2 (255) PATH "@name")
ID WHERE = 15;
This is the result.
THERE 21/05/2014 21/05/2014-11:18 Benny Koerhuis Regio/Raalte. ST Web werkonderbreking THERE 21/05/2014 21/05/2014-11:18 Benny Koerhuis Regio/Raalte. ST Web Zwanenburg THERE 21/05/2014 21/05/2014-11:18 Benny Koerhuis Regio/Raalte. ST Web staking THERE 21/05/2014 21/05/2014-11:18 Benny Koerhuis Regio/Raalte. ST Web Stegeman THERE 21/05/2014 21/05/2014-11:18 Benny Koerhuis Regio/Raalte. ST Web La¼Pack THERE 21/05/2014 21/05/2014-11:18 Benny Koerhuis Regio/Raalte. ST Web CNV vakmensen Is it possible to concatenate the results of the last column?
It should be "werkonderbreking, Zwanenburg, staking, Stegeman, la¼pack, cnv vakmensen" so, I get a recording instead of six.
Thanks in advance.
Is it possible to concatenate the results of the last column?
Yes, use string-join function:
...
titel PATH of VARCHAR2 (10) 'bestemmingen/bestemming[@primary="true"]/@site '. soort PATH of VARCHAR2 (10) 'bestemmingen/bestemming[@primary="true"]/@channel '. trefwoorden PATH of VARCHAR2 (4000) 'string-join(tags/tag[@type="keyword"]/@name, ","). ) t1
In this way, that you need more of the second XMLTABLE.
-
Assign paragraph styles to xml tags correctly. How?
Hello
I want to assign xml tags to paragraph styles in InDesign CS6 on a Mac 10.6.8. The XML itself is organized as follows:
<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
< catalog >
< article id '32434' = >
"< img href="/bilder/32434.tiff "/ >
< artikeltextgruppe >
< artikelmarke > DieselGabana < / artikelmarke >
< artikelheadline > super Jeans ist < / artikelheadline >
< artikeltext > Superjeans knallt kidney. < / artikeltext > < number > 70238 < / weight >
< artikelmaterial > 100% Jeans < / artikelmaterial >
< artikelgroesse > UK < / artikelgroesse >
< artikelfarbe > UK < / artikelfarbe >
< / artikeltextgruppe >
< / product >
< / katalog >
By selecting the option "Assign formats by name to the tags' (translated from the German), I wanted to create the desired look. But if I start all I get is the entire < artikeltextgruppe > textblock assigned to 1 formatstyle. And not to mention that the whole content of < artikeltextgruppe > resembles a single paragraph without any structure (no line breaks) the content is properly structured, because I can highlight the value of e.g. < artikelmarke > separately by doubleclicking the tag in the structure view.
(a) what can I do to assign formats correctly AND to have correct line breaks?
"(b) if I drag my node < img href="/bilder/32434.tiff "/ > iin the layout, I get a message posted to search again for the location of the correct reference. And this happens independently on the use of the relative or absolute references (even if I need to use those on) what can I do here?
Thank you very much
First of all, I have probably do a search and replace to remove the group element with a text editor (
and elements). They aren't really necessary.Secondly, I usually create my styles with the same names as the items themselves. Then, after the XML is imported, I use the command "map tags to styles" in the Structure pane.
I copied and pasted the single article element to create 4 folders, added a change to an image for each record of the item. Once the paragraph styles have been mapped, your XML looked like this in form of two columns (to get all 4 records on a page)...
By default, ID creates a single line to a single line in the XML file. So if you want to be on their own line of the elements, the XML must be formatted like this. If you need a different style within a paragraph, you create character styles and edit the items in a group of XML and or paragraph and add the code in the XML file accordingly or post-processing once inside the code.
I still need to take the XML I gives me and reformat, moves with the tree items, change the links to the images, delete tabs and or spaces where I do not want, tag character styles, etc., to be closer to how I want the original format to be.
Mike
-
Satellite A110: I need to replace the motherboard and the CD/DVD combo drive
I have a Satellite A1100, and my CD/DVD Combo needs to be replaced... also, I need to replace the motherboard by qualifying the connections that connect the CD/DVD drive is damaged. Is there any possible way for me to get the motherboard and the CD/DVD combo myself or should I consider a service repair center?
And if there is a way to get the spare parts of CD/DVD and a motherboard... can someone please tell me where I can get them from? If anyone has any idea how much it's going to put me back I would appreciate, they would let me know how it is... also, I would gladly help if someone can tell me what I can do about it.
Thank you
Hello
How old is your machine? If you still have your warranty, so why not give your machine to a local service partner?
So if you don t give something on your guarantee you can trade your coins. But to look for the pieces on google and you won´t get any help from toshiba (e.g. manual disassembly or something similar).
I tried long before your request and I made my experience that if you want to open your machine your completely on your own.
Welcome them
-
I have trouble replacing child xml inside the XML document (below). In order to change the value of the xml node, do I really need to replace the child or there is a way to change the value of the xml node?
It seems that you try actually just to change the attribute of a node. If so, you can simply get the reference of the attribute and its value, as shown in the attached example.
-
I need to replace my WRT54G?
I have a WRT54G ver 3 I installed the firmware to verersion 4.21.1 as I am trying to add a new Windows 7 laptop with a Wireless N adapter to my home wireless network. I can still connect my old XP SP3 computer to the Internet, but the new laptop still does not connect (I use DSL). It detects the SSID and displays 'limited connectivity' to the WRT54G and no Internet connection. The limited connection knows the router has WEP encryption and returns the correct encryption key, but it the IPv4 and IPv6 protocols show no network access. Aside from obvious speed gains, if I need to replace my wireless router and it must therefore be a double tape drive to work with my 54 Mbps G-adapter on my old laptop and the laptop card Intel(r) Centrino Advanced-N 6200 AGN on the new computer?
Connect the computer to the router with the Ethernet cable.
Open the router configuration page.
Go to the Wireless tab and change the name of the wireless network SSID (create a new wireless network). Change the channel to 11. Save the settings.
Click the wireless security sub tab and change the security to WPA Personal mode. Enter the password for your wireless network. Save the settings.
Go to the sub-tab to Wireless MAC filter and make sure that it is disabled.
Go wireless advanced settings. Change the tag to 75 interval, RTS threshold and fragmentation to 2306. Save the settings.
Now try to connect to the new network wireless on the old XP computer.
Then try to connect to the network wirelessly on the computer windows 7.
Maybe you are looking for
-
Windows live messenger connection does not
I can't sign into Windows Messenger. I had intermittent problems with messenger shuttin down and so I'm not able to use outlook Microssft. Ther problem would fix itself if I rebotted. Now it won't let me log on and when I try to shhot disorder I get
-
Original title: list separator Windows 7 Hi, I was wondering is it possible to add 2 values to list separator? I need to be able to open the .csv file in Excel separated by two, and; At the moment I can only do that if I continue to change the list
-
PIX - Polo or not in function external interface used
I'm still digging into that, but need not NAT all traffic begins inside for 2 of my low-security interfaces (dmz1 & dmz2), but have the same traffic PATed at the address of the interface if it goes on the external interface. I use nat (inside) 0 0.0.
-
Hello I've updated my PC a year earlier to use ultimate anytime upgrade. Now I need to rebuild my PC how to pass the ultimate when the rebuild is complete. (this will be the factory Pro) Download a copy of the Ultimate? Concerning Michael
-
Original title: startup When Toshiba C50 starting all I get is "prepare to set up Windows do not turn off your computer" I let it run all night, but always the same screen morning