Extract data from an xml file takes almost an hour to 2.5 M data.
HelloAny help would be much appreciated. Extract data from an xml file takes almost an hour to 2.5 M. data is there a solution to this.
WITH t AS
(SELECT XMLTYPE (response) pass FROM dual
)
SELECT
b.entity_id,
c.INSTANCE_ID,
d.attribute_id,
d.DATA_TYPE,
d.ATTRIBUTE_VALUE,
d.outcome_style
T,.
XMLTABLE (XMLNamespaces ("http://schemas.xmlsoap.org/soap/envelope/" AS "SOAP-ENV"
'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS 'type')
, ' SOAP - ENV:Envelope / SOAP - ENV:Body / typ: assess-response/typ: global instance / typ:entity'
PASSAGE t.col
Path of COLUMNS entity_id VARCHAR2 (256) "@id".
path XMLTYPE res_tmp2 'typ:instance') b
xmltable (XMLNamespaces ("http://schemas.xmlsoap.org/soap/envelope/" AS "SOAP-ENV"
'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS 'type')
, "typ:instance".
PASSAGE b.res_tmp2
Path of COLUMNS instance_id VARCHAR2 (256) "@id".
path XMLTYPE res_tmp3 'typ:attribute') c
xmltable (XMLNamespaces ("http://schemas.xmlsoap.org/soap/envelope/" AS "SOAP-ENV"
'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS 'type')
, "typ:attribute".
PASSAGE c.res_tmp3
Path of VARCHAR2 (256) COLUMNS attribute_id '@id '.
, data_type VARCHAR2 (256) path '@type '.
, attribute_value VARCHAR2 (256) path '.'
path VARCHAR2 (256) outcome_style '@inferred') d;
Thank you
Mhand
OK, in this case the best option is to store the answer in a binary table of XMLType (may be a temporary table if you want to) and run the query from there:
CREATE TABLE tmp_xml OF XMLType
XMLType STORE AS SECUREFILE BINARY XML -- default storage in your version
;
INSERT INTO tmp_xml VALUES(XMLType(response));
SELECT b.entity_id,
c.instance_id,
d.attribute_id,
d.data_type,
d.attribute_value,
d.outcome_style
FROM tmp_xml t,
XMLTABLE(
XMLNamespaces('http://schemas.xmlsoap.org/soap/envelope/' AS "SOAP-ENV"
, 'http://oracle.com/determinations/server/10.3/rulebase/assess/types' AS "typ")
, 'SOAP-ENV:Envelope/SOAP-ENV:Body/typ:assess-response/typ:global-instance/typ:entity'
PASSING t.object_value
COLUMNS
...
Tags: Oracle Development
Similar Questions
-
Impossible to analyze data from an xml file
I try to get the strings from an xml file:
I tried the following:
var url: URLRequest = new URLRequest ("blog.xml");
var xml;
var rss:URLLoader = new URLLoader();
RSS. Load (URL);
rss.addEventListener (Event.COMPLETE, readRss);function readRss(e:Event):void {}
XML = XML (rss.data);
txt_field. Text = XML. Entry [1]. Author.Name;}
but no result. TypeError: Error #1010:...
I tried tracing xml and worked well.
The xml structure seems to be too complex
var blogList:XMLList = xml.children (); Returns a xml structure more simple but always unsuccessfully in the analysis of the parts of xml as a "title" or "author."
Any suggestions would be greatly appreciated.
Thank you
var url: URLRequest = new URLRequest ("blog.xml");
var xml;
var rss:URLLoader = new URLLoader();
RSS. Load (URL);
rss.addEventListener (Event.COMPLETE, readRss);function readRss(e:Event):void {}
XML = XML (rss.data);var ns:Namespace=xml.namespace();
txt_field. Text = XML... NS::name [0];}
-
How to display records from the xml file
Hi all
I created a region his area of research in reality
with 5 elements and array of result area
I want to search records based on the 5 elements and want to view output table
I have the table name as hr_api_transactions, which contains many columns
and also, this table contains a column
name TRANSACTION_DOCUMENT of type CLOB()
that files xml columns for each record
I want to extract data from this xml file and want to display.Instance of the view - put the name of VO with which you are extracting data
Discover the attribute and the attribute of file View - could see attribute by which you found the content of the file
File name substitution - is not mandatory, let him
The MIME type of the file: do not place anything, need to better manage programmatically through. Put the code in the below processRequest() method
OADataBoundValueViewObject contentBoundValue = new OADataBoundValueViewObject(downloadBean, "FileContentType"); // here "downloadBean" is bean of message Download item downloadBean.setAttributeValue(FILE_CONTENT_TYPE, contentBoundValue);
-Anand
-
How to extract information from the ovf file from a file of eggs by programming?
How to extract information from the ovf file from a file of eggs by programming?
Hello
Please provide details:
-On what OS you are programming (Linux, Windows,...)?
-What programming or scripting language do you use?
An EGG file is just a tarball of hard, .ovf and .mf files. The .ovf file is always the first. For example, on a Unix like operating system, this should be easy.
For Windows, there are several options available to manage programmatically the tarballs. See for example http://www.codeproject.com/Articles/470999/tarlib-Windows-TAR-Library.
And the ovf itself file is in XML format. For handling XML files are libraries available for literally every OS and programming language.
Google is your friend.
Andreas
-
How to extract pages from a large file?
How to extract pages from a large file?
Free Adobe Acrobat Reader cannot extract pages. This would require the purchase of the full version of Adobe Acrobat.
-
Hello
The attached xml file contains data that I would like to extract. The value of the data has the label (ubchild? name /) of ' means ".". " This can happen a number of times in the file for the names of different children. for example
SENS0710:10951:IntSolIrr has the value that742.320755 and
SMBAU008:154000347:m_S0 kWh has the value that227.458679 and so on...
The attached vi is very very simple and uses the vi JKI EasyXML to parse the file to a data type of labview.
This is the point at which I need advice as to the way forward. I have reflected on the variant data, clusters, etc., but can't seem to get anything close to work.
Someone would be kind enough to give me some tips or tricks to extract these values in a table.
Thankl you
Concerning
Ray
Hi rayclout,
I don't have parser Xml JKI vi... But I used the default XML functions and can read the average tag. Please find the screenshot of it.
Thank you and best regards,
srikrishnaNF
-
Data from the XML file in a large application...
I don't know what question is asked. The subject contains XML files and large scale applications, yet the last lines refer to write a Cluster in XML and seems to wonder if the Cluster must be a Global Variable or a TypeDef.
A 'good idea' general is to create a TypeDef that specifies (or "sets") (almost) each Cluster that you create in LabVIEW. This serves as a single-point cluster definition. If you need to make changes, you change the TypeDef and variables based on it change to match.
I do not understand why the Global Variables and TypeDefs are mentioned in the same sentence.
Bob Schor
-
Reading data from an XML file with the same parent tag
We have the XML file that is stored in a CLOB column. We can typecast the CLOB to XML and access to a particular value. We cannot do the same in the case of same parent tag. We read the amount claimed for LABOUR, the FREIGHT_DUTY and MEALS. Can anyone help us.
SELECT EXTRACTVALUE (XMLTYPE.createXML (CLAIM_SNAPSHOT_STRING),'path / text () ')
IN ln_hl_labor_hrs_on_job
OF TAV_DC_031A_CLAIM_AUDIT_XML
WHERE CLAIM_AUDIT_ID = 3799;
< paymentComponents class = "dΘfinir" >
< company.domain.claim.payment.PaymentComponent >
< id > 30310 / < ID >
< version > 0 < / version >
< forCategory class = "company.domain.claim.payment.CostCategory" >
< id > 6 / < ID >
< version > 1 < / version >
Meals from < name > < / name >
< code > < code > MEALS
< description > meal < / description >
< / forCategory >
< claimedAmount >
< amount > 0.00 < / amount >
"< reference currency ="... /... /.. /.. /.. /serviceInformation/ServiceDetail/laborPerformed/company.domain.claim.LaborDetail/laborRate/currency"/ >
< / claimedAmount >
< /company.domain.claim.payment.PaymentComponent >
< company.domain.claim.payment.PaymentComponent >
< id > 30311 / < ID >
< version > 0 < / version >
< forCategory class = "company.domain.claim.payment.CostCategory" >
< id > 3 < /ID >
< version > 1 < / version >
< name > work < / name >
< code > < code > WORK
< description > work < / description >
< / forCategory >
< claimedAmount >
< amount > 217.00 < / amount >
"< reference currency ="... /... /.. /.. /.. /serviceInformation/ServiceDetail/laborPerformed/company.domain.claim.LaborDetail/laborRate/currency"/ >
< / claimedAmount >
< /company.domain.claim.payment.PaymentComponent >
< company.domain.claim.payment.PaymentComponent >
< id > < /ID > 30312
< version > 0 < / version >
< forCategory class = "company.domain.claim.payment.CostCategory" >
< id > 5 / < ID >
< version > 1 < / version >
< name > point freight and duty < / name >
< code > < code > FREIGHT_DUTY
< description > point freight and duty < / description >
< / forCategory >
< claimedAmount >
< amount > 0.00 < / amount >
"< reference currency ="... /... /.. /.. /.. /serviceInformation/ServiceDetail/laborPerformed/company.domain.claim.LaborDetail/laborRate/currency"/ >
< / claimedAmount >
< /company.domain.claim.payment.PaymentComponent >
< / paymentComponents >
Kind regards
Franck Giri
SQL> with t 2 as 3 ( 4 select 5 xmltype 6 ( 7 '
8 ' 54 ) xml_data 55 from dual 56 ) 57 select t1.* 58 from t 59 , xmltable 60 ( 61 '/paymentComponents/company.domain.claim.payment.PaymentComponent' passing t.xml_data 62 columns 63 code varchar2(20) path 'forCategory/code', 64 amount number path 'claimedAmount/amount' 65 ) t1; CODE AMOUNT -------------------- ---------- MEALS 0 LABOR 217 FREIGHT_DUTY 0 SQL>9 2330310 100 1112 186 131 14Meals 15MEALS
16Meals 1719 220.00 2021 24 3830311 250 2627 333 281 29Labor 30LABOR
31Labor 3234 37217.00 3536 39 5330312 400 4142 485 431 44Item Freight And Duty 45FREIGHT_DUTY
46Item Freight And Duty 4749 520.00 5051 -
Ghost of the data from the XML file
Hi scripters,.
I got data ghosts of my XML file by importing.
In the file XML are 3 times the content of parent 'HALSRIEMEN-GEFL' but I understand not 5 times, I have no idea more and hope someone see the problem.
My Plan:
<>products-profdog
< product >
< item-id > < / item id >
< type > < / type >
< title > < / title >
< additive > < / addendum >
< description > < / description >
< category > < / category >
> < unit volume < / unit volume >
< weight > < / weight >
< match code > < / matchcode >
< ean number > < / ean-number >
<>< price-unit / unit price >
< stock > < / stock >
< parent > < / parent >
< active shop > < / active-shop >
< active catalog > < / active-catalogue >
< sort > < / sort >
< / product >
< product >
< item-id > < / item id >
< type > < / type >
< title > < / title >
< additive > < / addendum >
< description > < / description >
< category > < / category >
> < unit volume < / unit volume >
< weight > < / weight >
< match code > < / matchcode >
< ean number > < / ean-number >
<>< price-unit / unit price >
< stock > < / stock >
< parent > < / parent >
< active shop > < / active-shop >
< active catalog > < / active-catalogue >
< sort > < / sort >
< / product >
< / products-profdog >
My loop:
for (i = 0; i < myRootXMLElement.xmlElements.length; i ++) {}
for (ii = 0; ii < myRootXMLElement.xmlElements.item (i).xmlElements.length; ii ++) {}
If (myRootXMLElement.xmlElements.item (i).xmlElements.item (ii).markupTag.name == 'parent') {}
If (myRootXMLElement.xmlElements.item (i).xmlElements.item (ii) .silence == 'HALSRIEMEN-GEFL') {}
Alert (myRootXMLElement.xmlElements.item (i).xmlElements.item (ii).markupTag.name "->" + myRootXMLElement.xmlElements.item (i).xmlElements.item (ii) .silence);
}
}
}
}
I have it.
There was a bad XML import settings.
It must be removeUnmatchedExisting = true;
-
Getting data from several XML files
Could someone please shed some light on the best way to read several external xml files through Flex? We haveabout 100 xml files (of which few are accessible by users).
I tried to implement the following generic function which takes a file name, but when debugging it, it seems that the Manager never gets call after executing the line of service.send ()! I would much appreciate your help!
public void fetchFileContent(fileName:String):void {//this method is called when you click on a button
var service: HTTPService = new HTTPService();
service. URL = "filePath /" + file name;
service.useProxy = false;
service.resultFormat = 'e4x ';
service.addEventListener ("result", fileRetrievalHandler)
service. Send();
}
public void fileRetrievalHandler(evnt:ResultEvent):void {}
fileContent = evnt.result.feed; This line is never executed
}
"miglara" wrote in message
News:glhase$5sr$1@forums. Macromedia.com...
> Could someone please shed some light on the best way to read more
> external xml files through Flex? We haveabout 100 xml files (of
> who
(> only little is accessed randomly by users).
> I tried to implement the following generic function which takes a
> filename
> but when debugging it, it seems that the Manager never gets call after
> executing the line of service.send ()! I would much appreciate your help!
>
> public void fetchFileContent(fileName:String):void {//this method is
> called by clicking on a button
> var service: HTTPService = new HTTPService();
> service.url = ' filePath / "+ file name;
> service.useProxy = false;
> service.resultFormat = 'e4x ';
> service.addEventListener ("result", fileRetrievalHandler)
> service.send ();
> }
>
> public void fileRetrievalHandler(evnt:ResultEvent):void {}
> fileContent = evnt.result.feed; This line is never executed
> }Try to add a fault handler and see if that goes off. Also, since you are
use HTTPService rather than URLLoader, you should know that this will probably not
already worked for your development environment, unless you have either changed the
Directory of output to go on the server or you have changed some compiler flags
to allow you to get local and access to the network at the same time. That's why
I always use URLLoader to load XML files to relative path... it just
works without my need to change anything. -
create table from the XML file at several levels
Hello
I'm working on the provision of an app to display xml data, which are currently using data from the settings file where the data was stored in a table.
CONT =]
[{txt: 'Perfume'} //main menu][[{txt: 'Top Note', framework: 'topNote'}, {txt: 'Heart notes', frame: "heartNote"}, {txt: frame, 'Note of Base': 'gaps'}] / / submenu]
,[
{txt: 'Packaging', field: 'packaging'} / / main menu]
]
I created an xml file and am able to recover data and impossible to find the same.
Here's the xml file
< Products >
< produces txt = setting "Perfume" = "" > "".
< = frame 'Top Note' = "topNote" txt file name > < / name of the file >
< = txt file name ' heart notes"frame ="heartNote"> < / name of the file >
< file name txt = "Core score" frame = 'gaps' > < / name of the file >
< / product >
< produces txt = framework of 'Packaging' = 'packaging' > < / product >
< produces txt = framework "3D Animation" = "tvAd" video = "true" flvName = "video.flv" w = "547" h = "309" > < / product >
< product txt framework "advertising Lla' = 'the package' = >
< name of the txt-file = "Print Ad Creative Pack" frame = "printCp" > < / name of the file >
< / product >
< / product >AS A CODE
---------------------------------------
(GlobalVarContainer.myXML is the place where is stored the xml file)
var node:XMLNode = GlobalVarContainer.myXML.firstChild;
var navItm:int = int (node.childNodes.length);
for (i = 0; i < wheel; i ++) {}
var temp_array:Array = new Array();
var subnavCount:int = int (node.childNodes [i].childNodes.length); subnav
var obj:Object = new Object();
obj.txt = node.childNodes [i] .attributes ['txt ""]
obj. Frame = node.childNodes [i] .attributes ["frame" "]
trace (node.childNodes [i]. Attributes ['txt'])
for (var j: int = 0; j < subnavCount; j ++)
{
trace (node.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [j]. Attributes ['txt'])
obj.subtxt = node.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [j]. Attributes ['txt'];
obj. Subframe = node.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [j]. Attributes ['frame'];
temp_array.push (obj);
}
GlobalVarContainer.my_array.push (temp_array);}
If I add - trace (GlobalVarContainer.my_array); -to code the outout is
[object Object], [object Object], [object Object]
[object Object], [object Object], [object Object],.
[object Object], [object Object], [object Object],.
[object Object], [object Object], [object Object], [object Object]but trace (.txt [i] GlobalVarContainer.my_array + "array"); or trace (GlobalVarContainer.my_array [i] [0] .txt + "array"); no results.
need advice to move forward from here.
Thank you
AYUSH
What I meant is that if you load the XML e4x, you have to analyze in a table to use it. You can retrieve the syntax of e4x XMLList and use it directly in your code. You can treat the XMLList almost as you treat any array using a for each loop for example.
Take the code below as an example and adapt it to your needs:
var mainMenu:XMLList = this.testXML.menu;
for each {var menu: XML (in mainMenu)}
trace ("Menu:" + menu.@txt);
You can use your logic to create menu main point here
var mynavItem:Navitem = new Navitem (0, spatie * i, GlobalVarContainer.my_array [i] [0], [i, 0], false, true);
this.holder.addChild (mynavItem); ABLE TO VIEW THE MAIN MENU
var items: XMLList = menu.children ();
If (items.length () > 0) {}
for each {var point: XML (in the points)}
trace ("point:" + item.@txt);
Logic of creation of subitem here
var mySubnavItem:Navitem = new Navitem (dash, spatie * (i + 1 + j), GlobalVarContainer.my_array [i] [2], [i, j], true);
this.holder.addChild (mySubnavItem); DISPLAYS ONLY THE LAST ENTRY IN THE SUBMENU
}
}
}
-
Hello
I have a problem to transfer content to an XML file in a MS SQL database through a stored procedure data/fixed. I am able to transfer the content of the file using method...
HSTMT = DBPrepareSQL (hdbc, EXEC usp_InsertReport "
... ");resCode = DBExecutePreparedSQL (hstmt);
resCode = DBClosePreparedSQL (hstmt);
... but in this case, I am not able to read the return value of the stored procedure.
I tried to follow the example of the stored procedure in the help documentation (DBPrepareSQL), but I miss a xml data type?
No idea how to solve my problem?
Cake of KR
DianaS salvation,
Thanks for your comments. During this time I found another way which fullfill my needs:
resCode = DBSetAttributeDefault (hdbc, ATTR_DB_COMMAND_TYPE, DB_COMMAND_TEXT);
sprintf (sz_SqlStatement, "DECLARE @TESTID INT EXEC @TESTID = usp_InsertReport ' SELECT 'RetVal' %s = @TESTID", sz_Buffer ");
HSTMT = DBActivateSQL (hdbc, sz_SqlStatement);While ((resCode = DBFetchNext (hstmt)) == DB_SUCCESS)
{
/ * Enter values in the record. */
resCode = DBGetColInt (hstmt, 1, & s32_TestId);
}resCode = DBDeactivateSQL (hstmt);
sz_Buffer is the content of the XML file.
Cake of KR
-
Captivate 8 glossary import from an xml file does not
Hello
I try to import the glossary of 110 words in captivate 8 using the xml file. It says imported successfully, but nothing is displayed in the table of glossary. I checked the XML multiple times, it seems OK but still not able to import in order to capture the 8.
Someone at - it have the same problem? How can I solve this?
Thanks for your help.
Thank you very much
Claudine
This may have been answered in another thread:
Re: Glossary 8 Captivate Widget doesn't display correctly in HTML5
You should try it with a version update of the glossary Widget to Cp8:
-
I think I have a problem in my cross-references and hoping that there is a simple-minded answer (as I do something real dumb). I import the generated content of xsl and references appear in square brackets by * asterisks. If I double-click on a reference, it seems to open the appropriate file (may be an xml file before saving any files to fm docs).
THE FOLLOWING XML CODE:
< CrossReference XRefID = "IDapplications_tb" size = "fm:Fig - Tbl-Ex-Proc # on"
"page #" srcfile="./CPU-1_Introduction.fm#IDapplications_tb"/ >
HERE'S THE RULE:
/*
* Reference element
*/
element "Reference" {}
FM reference element "reference";
"XRefID" attribute
{
is the property of fm cross-reference id;
is the attribute of fm;
}
attribute "format".
{
is the reference property formula fm;
is the attribute of fm;
}
}
In the FM wysiwyg format, it pops up something like this (with the asterisks):
Text label *.
What do the asterisks mean? Thank you
Your XML specified
format = "" fm:Fig - Tbl-Ex-Proc # on page # ""
but the model used when you open the XML file does not contain a cross-reference with that name, then format FrameMaker created for you with a few fake definition.
-Michael
-
loading an image from a xml file
I'm trying to load an image title "(1) .jpg ' file xml in a flash applet. I'm not an expert, but I think the code should work to store the name of the image, as I wrote it correctly in my xml document. Here is the code I use.
In this code, the definition of the line "image = _root.floorplan;" is where he SHOULD get the information in the details.xml file. If I change the code to read "image =" (1) .jpg; "it loads very well."
I am not to store the value of the node xml properly, or does not claim it correctly?
I thought about it - I need to place the "image = _root.floorplan; ' in the case statement of the loadXML function.
I have it!
Maybe you are looking for
-
Java plug appears not and all the fixes do not work.
I tried all the solutions proposed in the forums and firefox java plugin related posts - nothing works. asks me to install the plug-in missing, then said no suitable are available - Hello, ever heard talk about java. They tell me to do the plug-ins r
-
HP TouchSmart 610-1030y replacement of office mouse
My mouse died on me, and I bought the same mouse HP and the USB dongle for replacement. I can't find the location on the HP Touchsmart 610-1030Y to replace the existing key. I found a similar question on the forum that directs me to a picture of a
-
What is the difference between a STL100-1 and a STL100-3?
-
Can I install IIS server in windows 7 Home Basic Edition?
Hello I followed the steps below to install the IIS server in Windows 7 homw base. Start-> Control Panel-> turn on OR off windows features Because I chose this IIS services, and then I clicked Ok. After that, I checked in drive C... in this issue of
-
Organize and rearrange the images in a folder named as in XP. You could organize by date, size, etc. and do drag and drop all in a folder, it is not possible in Windows 7