access XML data outside the charger function
Hello
I want to load my XML, wait the full loading and then be placed to access the XML data loaded in the major part of my program. I do so because I want to load and process, such as XML or superior to 10 in this project... Its here the code that I wrote
Thanks for help
import flash.net.URLLoader;
var c:XML;
var b:URLLoader = new URLLoader();
function fxxml(): {URLLoader
b.Load (new URLRequest ("testxml.xml"));
Return b}
fxxml () .addEventListener (Event.COMPLETE, processbase);
function processbase(e:Event) {}
var a: XML = new XML (e.target.data);
trace (a)
I could find my updated XML here could not access outside this function
}
I want to be placed to get the XML here outside the loadin function
Why did you declare c? Just use it inside processbase, instead of one, and you can use it elsewhere...
function processbase(e:Event) {}
c = new XML (e.target.data);
trace (c);
}
Tags: Adobe Animate
Similar Questions
-
My select statement fails with the error:
The ORA-19011 string buffer too small
The select statement looks like:
SELECT TO_CLOB)
XMLELEMENT ("accounts",
XMLELEMENT ("count",
XMLATTRIBUTES)
rownum AS "recordId."
To_date('20130520','YYYYMMDD') AS "datestarted."
123456 AS "previousBatchId."
56789 AS 'previousRecordId '.
),
....
.... .
.....
XMLFOREST)
SIG_ROLE AS "SignatoryRole."
To_char(TRANSFER_DATE,'YYYY-mm-DD') AS "TransferDate."
NVL(Reason,0) AS 'reason '.
) AS the 'transfer '.
)
()) AS CRDTRPT
OF ANY_TABLE;
- It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)
I'd use the XMLGEN package. But the environment team says no mounted drives in the future with the arrival of the EXADATA.
NO HARD DRIVE MOUNTED, NO ACCESS TO THE DATABASE DIRECTORIES
No UTL_FILE
I need to use the REEL spool the resulting XML data of the SELECT query.
SQL is a standard in my org, but I can do with a PL/SQL solution also to load data into a table (cannot use a COIL with PL/SQL)
What I do is:
- a column of type CLOB to a xml_report of the loading of the above SELECT query table
- Then using SELECT * FROM xml_report to SPOOL the data to a file report.xml
No need of XMLTYPE data behind. Xml data stream is fine for me.
In addition, I need to validate the XML file, also using XSD.
Problem is that the resulting lines of the select query are supposed to be from 15000 to 20000 bytes long.
Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
A Suggestion or a solution to this problem would be appreciated.
(Sorry for the use of "BOLD", just to make it more readable and highlight the imp points)
Bravo!
Rahul
It looks like I can choose only 4000 characters using the SELECT statement (please, correct me if I'm wrong)
You use the right method.
There is an implicit conversion from XMLType to the data type VARCHAR2 as expected by the function TO_CLOB, where the limitation, and the error.
To serialize XMLType to CLOB, use the XMLSerialize function:
SELECT XMLSerialize (DOCUMENT
XMLELEMENT ("accounts",
...
)
)
OF ANY_TABLE;
For the rest of the requirement, I wish you good luck trying to spool the XML correctly.
You may need to play around with the SET LONG and SET LONGCHUNKSIZE commands to operate.
-
Filtering XML data in the grid
I can't sem to figure out how to filter my XML data before entering my data grid. I want to load only the XML data with the ID 'BALUSTER' attribute and have tried to enter:
data_grid. DataProvider dp =. (@ID IS 'BALUSTER');
in my function xmlLoaded without success. I'm fairly new to as3 and could certainly use the help. Thank you.
var dpataProvider;
var products_xml:XML;
var xmlReq:URLRequest = new URLRequest("data/products.xml");
var xml_loader:URLLoader = new URLLoader();
function xmlLoaded(event:Event):void {}
var ldr:URLLoader = event.currentTarget as URLLoader;
var xmlDP:XML = new XML (ldr.data);
DP = new DataProvider (xmlDP);
data_grid. DataProvider = dp;
}
xml_loader. Load (xmlReq);
xml_loader.addEventListener (Event.COMPLETE, xmlLoaded);Assign the filtered data (not the original) to the data provider:
function xmlLoaded(event:Event):void {}
var ldr:URLLoader = event.currentTarget as URLLoader;
var xmlDP:XML = new XML (ldr.data);
var data: XML =
data.setChildren (xmlDP.PRODUCTS. (@ID) IS 'BALUSTER'));
DP = new DataProvider (data);
data_grid. DataProvider = dp;
} -
Catch / know the XML data in the form of PDF (without doing send XML)
It is possible from a PDF form using get JS / know the XML data in the current form?
I need to get the same XML data that would be generated with the "export data" function to Adobe Professional.
THX!
OK now I get... You can use the command:
xfa.datasets.data.saveXML ("pretty")
Paul
-
source of XML data in the db column?
Hello world
If I want to use XML data as the source of data for BI Publisher, these data can be stored in a column of data
or do I have to store the data from the source XML files in a file system?
If it can be stored in a column db - is there something I need to consider regarding the definition of the data source and the creation of the data model?
Thank you
Concerning
Andy
These data can be stored in a column of data
or do I have to store the data from the source XML files in a file system?
Yes
the data can be stored in
(1) table xmltype or clob or blob column or...
so you can analyze this column somehow by xquery or xmltable or...
(2) in the file of the bone
bfilename as therapy
xmltype( bfilename('GET_XML', xmlfilename.xml))
-
Insert XML data from the Table->; back to null
Dear Experts,
-I have table xml as below:
Example of CREATE TABLE (XML_spec XMLTYPE);
Insert in the example
Select ' < name of Message = "dataStaticInvestor" type = "IncomingMessage" >
< name of field = "batchReference" > OPENINGBATCH000000 < / field > < List name = "data" >
< = record name "data" >
< name of field = "externalReference" > 01234567890aaaaaaa < / field >
< name of field = "participantID" > OD001 < / field >
< name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
< / recording >
< = record name "data" >
< name of field = "externalReference" > 01234567890aaaaaaa < / field >
< name of field = "participantID" > OD001 < / field >
< name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
< / recording >
< = record name "data" >
< name of field = "externalReference" > 01234567890aaaaaaa < / field >
< name of field = "participantID" > OD001 < / field >
< name of field = "participantName" > EQUITY SECURITIES INDONESIA, PT < / field >
< / recording >
< / list >
< / message > ' double.
Select * example;
create table hasil1 (c1 varchar2 (500), c2 varchar2 (500), c3 varchar2 (500));
-This step I create the procedure to insert xml data into the table as the batch.
DECLARE
x XmlType;
BEGIN
Select XML_SPEC in x for example;
insert into hasil1
SELECT
p.Extract('/Record/Field/@externalReference').getstringval (C1),
p.Extract('/Record/Field/@participantID').getstringval (C2),
p.Extract('/Record/Field/@participantName').getstringval () as c3
TABLE (XMLSequence (Extract(x,'Message/List/Record'))) p;
commit;
END;
/
-when the result of select hasil1, the output is back 3 rows and 3 columns, but all data is a null *.
Best regards
SigcleYou don't explain what output you need, but I guess something like this:
SQL> insert into hasil1 (c1, c2, c3) 2 select x.c1, x.c2, x.c3 3 from example t 4 , xmltable( 5 'Message/List/Record' 6 passing t.xml_spec 7 columns c1 varchar2(500) path 'Field[@name="externalReference"]' 8 , c2 varchar2(500) path 'Field[@name="participantID"]' 9 , c3 varchar2(500) path 'Field[@name="participantName"]' 10 ) x 11 ; 3 rows inserted SQL> select * from hasil1; C1 C2 C3 ---------------------- --------- -------------------------------- 01234567890aaaaaaa OD001 EQUITY SECURITIES INDONESIA,PT 01234567890aaaaaaa OD001 EQUITY SECURITIES INDONESIA,PT 01234567890aaaaaaa OD001 EQUITY SECURITIES INDONESIA,PT
-
Insert XML data into the MySQL database
Hi all, I'm new with XML and I need help with the insertion of XML data in the mysql database using coldfusion. I looked on the Coldfusion Documentation and saw how to convert XML to a Coldfusion query... but there was no example of how to do an insert. If anyone can give me a good example or point me towards a good direction on how to do it, I would really appreciate it.
Thank you very much in advance
AlfieNevermind, I finally managed to do work!
-
Hi all
I have an XML (emp.xml) with data below:
-< root >
-< row >
< name > steve < / lastname >
< 30 > < / Age >
< / row >
-< row >
< name > Paul < / lastname >
<>26 < / Age >
< / row >
< / root >
I would like to create a stored procedure to store the xml data into the EMP table.
EMP
LastName age
Steve 30
Paul 26
I tried to watch all threads related to this forum, but cannot find the right wire. Any help is greatly appreciated. Thank youWith
SQL> select * from xmltable('root/row' passing xmltype('
steve 30 Paul 26 You can now just make a
Insert into emp as select...
-
XML data in the table using sql/plsql
Hi experts,
Could you please help with the following requirement. I have the tags xml (.xml on a server file) below. I need to access this file and read the XML and insert into the db table using sql and plsql. Is it possible with the cdata below? And there is a nested this table.
Could someone please guide me if you have a sample code file and xml.
<? XML version = "1.0" encoding = "UTF-8"? >
< generation_date > <! [CDATA [17/11/2015]] > < / generation_date >
< generated_by > <! [CDATA [Admin Admin]] > < / generated_by >
< year > <! [CDATA [2015]] > < / year >
< month > <! [CDATA [01]] > < / month >
< author >
< author > <! [CDATA [user author]] > < / author > < author_initial > <! [CDATA [user]] > < / author_firstname > < author_country > <! [CDATA [author]] > < / author_lastname >
< author_email > <! [CDATA [[email protected]]] > < / author_email >
< author_data_01 > <! [CDATA []] > < / author_data_01 >
< author_data_02 > <! [CDATA []] > < / author_data_02 >
< items >
< article_item >
< article_id > <! [CDATA [123456]] > < / article_id >
< publication > <! [CDATA [Al Bayan]] > < / publication >
< section > <! [CDATA [Local]] > < / section >
< issue_date > <! [CDATA [11/11/2015]] > < / issue_date >
< page > <! [CDATA [2]] > < / print this page >
< article_title > <! [CDATA [title.]] > < / article_title > < number_of_words > <! [CDATA [165]] > < / number_of_words >
< original_price > <! [CDATA [200]] > < / original_price >
< original_price_currency > <! [CDATA [DEA]] > < / original_price_currency >
< price > <! [CDATA [250]] > < / price >
< price_currency > <! [CDATA [DEA]] > < / price_currency >
< / article_item >
< / articles >
< total_amount > <! [CDATA [250]] > < / total_amount >
< total_amount_currency > <! [CDATA [DEA]] > < / total_amount_currency >
< / author >
< / xml >
Thanks in advance,
Suman
XMLTABLE using...
SQL > ed
A written file afiedt.buf1 with t (xml) as (select xmltype ('))
2 ") of the double)"
3
4
5
6
7
8
9
10
11
[[12[email protected]]] >
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34-
35 end of sample data
36-
37 - assumptions:
(38 - a) XML may have several tags
(39 - b) eachmay contain more
40-
41 select x.gen_by, x.gen_date, x.mn, x.yr
42, y.author, y.auth_fn, y.auth_ln, y.auth_cnt, y.auth_em, y.auth_d1, y.auth_d2
43, z.id, z.pub, z.sec, z.iss_dt, z.pg, z.art_ttl, z.num_wrds, z.oprice, z.ocurr, z.price, z.curr
44 t
45, xmltable ('/ authxml')
from $ 46 t.xml
path of 47 columns gen_date varchar2 (10) '. / generation_date'
48, path of varchar2 (15) of gen_by '. / generated_by'
49, path of varchar2 (4) year '. "/ year"
50 varchar2 (2) mn road '. "/ month"
51, path of xmltype authors '.'
52 ) x
53, xmltable ('/ authxml/authors ')
from $ 54 x.authors
author of 55 path of varchar2 columns (15) '. / author'
56, path of varchar2 (10) of auth_fn '. / author_firstname'
57, path of varchar2 (10) of auth_ln '. / author_lastname'
58 road of VARCHAR2 (3) auth_cnt '. / author_country'
59 road of varchar2 (20) of auth_em '. / author_email'
60 road of varchar2 (5) of auth_d1 '. / author_data_01'
61, path of varchar2 (5) of auth_d2 '. / author_data_02'
62, path of xmltype articles '. / Articles'
63 ) y
64, xmltable ('/ Articles/article_item ')
from $ 65 y.articles
path id 66 number columns '. / article_id'
67, path of varchar2 (10) pub '. ' / publication.
68 road of varchar2 (10) dry '. / section'
69, path of varchar2 (10) of iss_dt '. / issue_date'
70 road of VARCHAR2 (3) pg '. "/ print this page"
71, path of varchar2 (20) of art_ttl '. / article_title'
72, path of varchar2 (5) of num_wrds '. / number_of_words'
73, path of varchar2 (5) of oprice '. / original_price'
74 road to VARCHAR2 (3) ocurr '. / original_price_currency'
75, path of varchar2 (5) price '. "/ price"
76, path of VARCHAR2 (3) curr '. / price_currency'
77* ) z
SQL > /.GEN_DATE GEN_BY YEAR MN AUTHOR AUTH_FN AUTH_LN AUT AUTH_EM AUTH_ AUTH_ ID PUB DRY ISS_DT PG ART_TTL NUM_W OPRIC HEARTS PRICE OCU
---------- --------------- ---- -- --------------- ---------- ---------- --- -------------------- ----- ----- ---------- ---------- ---------- ---------- --- -------------------- ----- ----- --- ----- ---
17/11/2015 Admin Admin 2015 01 user author user author [email protected] 123456 UAE Al Bayan Local 11/11/2015 2 is the title. 165 200 AED AED 250Of course, you'll want to change the types of data, etc. as needed.
I assumed that the XML can contain several "
" sections and that each section can contain several entries. Thus the XMLTABLE aliasing as 'x' gives information of XML, and supplies the data associated with the XMLTABLE with alias 'y' which gets the multiple authors, which itself
section of the XMLTABLE with alias 'z' for each of the article_item. CDATA stuff are handled automatically by SQLX (XML functionality integrated into Oracle's SQL)
-
Good day all
That I retrieved from the data of a server, for example, is an XML document. The document looks like this:
<? XML version = "1.0" encoding = "UTF-8"? >
-results >
-Status code 'invalid' = >
< no access = user name account "7300" id = "7" / >
< / status >
< / results >
What the code would look like?
Is this correct? accountId = event.result.common.account. @ [' account-id ']; In my code I can access id account, but if I use the same code cannot access user id i.e. accountId = event.result.common.account. @ [' user id']; does not work
Or how do you access code?
Obviously, I'm doing something wrong. Can you help me or send me the documentation which can explain this for me?
Thank you
Dimitri
I found the answer to my question at the http://lyle.smu.edu/~coyle/cse7346/handouts/S09.XML%20and%20Flex.pdf
Document brilliant
-
How to access a CFC outside the web root
I need to access several of the CFCS that are sitting outside the web root, however, I can't seem to find the right way to call the component. For example... My Flex project is located in a folder under the web root. My CFC sit in a folder at the same level as the web root.
To illustrate:
The web root is c:\coldfusion8\wwwroot
CFCS are in a folder c:\coldfusion8\com
A CFC that I need to access is named fxCFC and is located at c:\coldfusion8\com\fxCFC.cfc
The Flex project is named fxProject and is located at c:\coldfusion\wwwroot\fxProject
The application is called main.mxml and resides in c:\coldfusion\wwwroot\fxProject\src\main.mxml
I can't call the CFC using "com.fxCFC" as my compiled application cannot see the component. I guess that since the CFC to sit above the root. Is there a way I can access?
Thank you!
Man I feel so stupid, I forgot the option in the remoting-config. XML which allows you to turn on the mappings.
It is the solution, your wwwroot CF proceed to web-inf/flex/services-config.xml, search for
and modify false for this
true Restart the servers and maps to start working.
I'm so stupid sometimes.
-
Loading XML data in the tables
Hi, I am currently working on a calendar of upcoming events. I have everything works fine, including the loading of an xml database based on the month and year in the temporary within the XML onLoad section tables, but my problem is obtaining data in a table that I can look in my DrawDays() function. Right now I'm pushing the content of the temporary table in loadXMLevent() in _root. Calendar.event_text_array and this table is filled up until I get into the DrawDays function. Any help would be greatly appreciated. I deleted the code associated with this email.
Thank you!
Chris
You cannot call DrawDays() until loadEventArray() execution.
-
Reflecting changes in XML data in the file swf online
Hi friends,
I have access to an xml file that is in the server permanently with the intervals of distinct time of my swf in a page online.
If I make any changes in the xml data it does not reflect my online page because it's access to the XML content offline.
How to avoid this? I want my page be reflected immediately when I make a change in my xml file.
Is there any wawy to clear the content offline in ActionScript or ASP?
* I gave the full path of the server to load the xml file in my ActionScript.
Thanks in advance... - *.
Hello
Just add a variable to change to the URL of the xml file:
XML. Load ("Data.xml? foo =" + getTimer ());In this way, the URL is never the same, so the XML is loaded each time. You cannot test this film more locally, because it throws file not found errors, but with a server it works fine.
see you soon,
blemmo -
Load the XML data to the UNIX server directly to Tables of database relational
Is there a way I can load some data from an XML file in the Oracle Tables, without going through the input file XML in a directory of the Oracle server. My XML file resides on the UNIX application server. And I need to load the data directly into database tables. Without load them into the database directory.
Also, I'm looking for a solution that would not load my database much and affect other processes running. Can be done using SQL Loader?
Oracle database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
Thanks for the companions of answers!
There I helped to learn a lot of options.
But the easiest using UNIX server that worked for me was to use an XSLT transformation to convert the XML file to a delimited file. (Load the unix server, save the Oracle resources).
UNIX 'xsltproc' feature was not a bad option.
Then use SQL Loader to load into tables.
Bravo!
Rahul
-
extract xml data in the collection
Hello
I want to extract xml data in a collection of collection
could any body you tell me if we succeed in sql
ex:
declare
type t_code is table of number;
type r_rec is record (c_name varchar2 (100),)
c_code vrachar2 (100),
c_code_number t_code);
type t_rec is the table of the r_rec;
l_xml xmltype: = xmltype (')
< body >
<>campaign
< code > < code > CAMP_1
< description > Campaign_1 < / description >
< rateplans >
< rateplanCode > 1 < / rateplanCode >
< rateplanCode > 2 < / rateplanCode >
< rateplanCode > 3 < / rateplanCode >
< / rateplans >
< / campaign >
<>campaign
< code > < code > CAMP_2
< description > Campaign_2 < / description >
< rateplans >
< > 11 rateplanCode < / rateplanCode >
< > 22 rateplanCode < / rateplanCode >
< rateplanCode > 33 < / rateplanCode >
< / rateplans >
< / campaign >
<>campaign
< code > < code > CAMP_3
< description > Campaign_3 < / description >
< rateplans >
< > 111 rateplanCode < / rateplanCode >
< > 222 rateplanCode < / rateplanCode >
< > 333 rateplanCode < / rateplanCode >
< / rateplans >
< / campaign >
< result >
< > 00 resultCode < / resultCode >
< resultText > success < / resultText >
< / result >
(< / body > ');
Start
Select / * logic exrat value of xml in the final collection * /.
Double;
end;
I want data in the model in my final collection t_rec
CAMP_1, Campaign_1, nested_table (1,2,3)
CAMP_2, Campaign_2, nested_table (11,22,33)
CAMP_3, Campaign_3, nested_table (111,222,333)
Published by: 948596 on May 17, 2013 05:17Like this
SQL> declare 2 type t_code is table of number ; 3 type r_rec is record 4 ( 5 c_name varchar2(100), 6 c_code varchar2(100), 7 c_code_number t_code 8 ); 9 type t_rec is table of r_rec ; 10 l_rec t_rec := t_rec(); 11 l_xml xmltype := xmltype 12 (' 13 14
15 23CAMP_1
16Campaign_1 1718 221 192 203 2124 32CAMP_2
25Campaign_2 2627 3111 2822 2933 3033 41CAMP_3
34Campaign_3 3536 40111 37222 38333 3942 45 ' 46 ) ; 47 begin 48 for i in ( 49 select rownum id 50 , t1.code 51 , t1.description 52 , t2.rate_plan_code 53 , row_number() over(partition by t1.code order by t2.rate_plan_code) rno 54 from xmltable 55 ( 56 '/body/campaign' passing l_xml 57 columns 58 code varchar2(100) path 'code', 59 description varchar2(100) path 'description', 60 rate_plans xmltype path 'rateplans' 61 ) t1 62 , xmltable 63 ( 64 '/rateplans/rateplanCode' passing t1.rate_plans 65 columns 66 rate_plan_code varchar2(100) path '.' 67 ) t2 68 ) 69 loop 70 if i.rno = 1 then 71 l_rec.extend; 72 l_rec(l_rec.count).c_name := i.description; 73 l_rec(l_rec.count).c_code := i.code; 74 l_rec(l_rec.count).c_code_number := t_code(); 75 end if; 76 l_rec(l_rec.count).c_code_number.extend; 77 l_rec(l_rec.count).c_code_number(i.rno) := i.rate_plan_code; 78 end loop; 79 for i in 1..l_rec.count 80 loop 81 dbms_output.put_line(l_rec(i).c_code || ' ' || l_rec(i).c_name); 82 for j in 1..l_rec(i).c_code_number.count 83 loop 84 dbms_output.put_line(l_rec(i).c_code_number(j)); 85 end loop; 86 end loop; 87 end; 88 / CAMP_1 Campaign_1 1 2 3 CAMP_2 Campaign_2 11 22 33 CAMP_3 Campaign_3 111 222 333 PL/SQL procedure successfully completed. SQL>00 43Success 44
Maybe you are looking for
-
How to export Thunderbird email files on a Flash drive
I finished my term as a Director of a charitable organization and you want to transfer my files of relevant email to another administrator by using a 'flash' player, I can't seem to find a way to transfer these files to e-mail on the stick or the dis
-
I just did a clean install of Windows on my Thinkpad Yoga 14 10. I tried to install all the drivers that I could. The only thing missing for the laptop, it's that I can't auto-rotation in tablet mode. Auto-rotation setting is missing from the center
-
HDMI will Dim without VNC connection
Hello I have the following configuration: Mini Mac (i5, El Capitan) - HDMI--> B & W Panaroma 2-(HDMI)--> Samsung TV I'm mainly Plex Home Theater running on the Mac mini and control everything with a Logitech Harmony Hub via Bluetooth. I recently inst
-
Help, please! I accidentally spilled nail polish on my laptop keyboard. The keyboard now.
-
Hello. Is it possible to use non - ECC RAM in the HP Z820. If so, which do you recommend?