How to parse HTML via PL/SQL
Hi allPlease can someone tell what is my option to parse HTML using the PL/SQL API? In my case, I export data through PRIMAVERA (according to me, it's important where export) in Oracle E-Business Suite and show the result to the RTF model. But what should get the data from the PRIMAVERA, it shows the concatenated with the result HTML tags.
For example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> test description
I created a function that replaces the HTML defined in advance, but I can't specify all of the HTML tags in a function, so my question is there any useful PL/SQL API to achieve?Version:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
PL/SQL Release 11.1.0.7.0 - Production
"CORE 11.1.0.7.0 Production"
TNS for Linux: Version 11.1.0.7.0 - Production
NLSRTL Version 11.1.0.7.0 - Production
Thanks in advance,Bahchevanov.
.. .that means I can't use the REGEXP_REPLACE?
That means you to pouvez, to the keeping in mind the size restrictions already mentioned.
As explained in my first post, just remove the utl_encode.uudecode function, I used:
select replace(
regexp_replace(
utl_raw.cast_to_varchar2(task_memo)
, '<[^>]*>'
)
, chr(13)||chr(10)
) as "RESULT"
from taskmemo
;
Tags: Database
Similar Questions
-
Make the HTML via PL/SQL code
How can I get a file via PL/SQL porgram .html.You can use TEXT_IO built - in the opening and drop package
and use the HTML tag
and tag/html to open and station asdeclare
sFile text_io.file_type;
Start
sFile:=TEXT_IO.fopen('D:\ss\ss','rw");
TEXT_IO.put_line (sFile, e');
TEXT_IO.put_line (sfile, '<-------------->');
TEXT_IO.put_line (sFile, e');
end;-------------->
-
Hey, all, is there any package that can analyze the html into the DOM and especially give me coordinates of the element tag nodes and nodes in java, like mshtml in VC ++?
see you soon
DaiyueYou mean, a HTML page returned by a browser, I guess. Are you concerned that different browsers may render differently given HTML page? In any case what you're asking is for your Java application to not only analyze HTML (easy), but to predict how a browser pose in a window of arbitrary size (not easy).
You'd be better off looking for tools based on a browser for this need, in my opinion.
-
Execute Javascript via PL/SQL
Hello
I'm trying to run a simple js in plsql exactly as in the link here, but I don't know where I'm going wrong it does not work for me, doing exactly the same thing by putting the code in DA plsql type and running when you click the button.
Denes Kubicek ApEx BLOG: Run Javascript via PL/SQL
where iam going bad? the alert doesn't popup but ik fixed all syntax errors
what I did:
================================
create DA on click the button, and then set it to run when the page loads
Code:
v_today VARCHAR2 (200); v_emp_count NUMBER;
BEGIN
SELECT COUNT (*)
IN v_emp_count EMP; because loop me in 1.10
v_today: = TO_CHAR (SYSDATE, "dd.mm.yyyy hh24:mi:ss");
HTP.p ("< script type =" text/javascript"> '");
HTP.p (' alert (""is today"))
|| I have | » '|| v_today || '.\n' || "He must." || v_emp_count || ' employees in your emp table. \n" || "This is an alert generated by a PL/SQL block \n". || "(l'exécution de code javascript!'');" ); END loop; HTP.p ("< /script >");
end;
any help?
concerning
Hello
Gor_Mahia wrote:
you're right, I know / 3.2, we had no DA, but if I run it as a plsql code type DA or plsql process page it should work I don't see that as a problem in this case, no?
Dene example idea is JavaScript print while the page is loading. Then he will be executed.
When you print out the script tag after the page is rendered using the DA, it won't work not and not executed. That's how work browsers.
You should also read the comments of this blog post from Dene.
What iam trying to do is nothing special, just trying to execute this code example as it is?
You try to simply approach quite wrong.
Kind regards
Jari
-
How to run DBMS_SQLTUNE.report_sql_monitor of SQL Developer 4.0
Hello-
We have new SQL Developer 4.0 as a single stop for all reports of performance tuning.
(So far, we know how to generate the AWR and ASH ADDM directly from SQL DEV 4.0 and we can do as a NON-privileged user)
Now, the question is how to run DBMS_SQLTUNE.report_sql_monitor API SQL DEV 4.0?
I tried this way:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SELECT DBMS_SQLTUNE.report_sql_monitor)
sql_id = >: SQL_ID
Type = > 'TEXT ',.
report_level = > 'ALL') AS myreport
DOUBLE;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
and then right button click of the mouse on the line "myreport" and the EXPORT of 'text' in the menu drop down and save in the. FichierTSV on the local file system.
It works this way, as expected, but seems to be a lot of hassle: too many steps.
Then I tried the HTML format:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SELECT DBMS_SQLTUNE.report_sql_monitor)
sql_id = >: SQL_ID
Type = > 'HTML. "
report_level = > 'ALL') AS myreport
DOUBLE;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
and it didn't work well at all SQL dev 4.0
Any help will be greatly appreciated.
(once again, the idea here is to set up our development and QA groups with full access to performance all reports without having them call DBA for help in the production of any SQL tuning report).
Thank you
VR
There is certainly a 'room' to improve the interface, just tell me what you would like to be like him. For example, you want an overview of the SGS of all SQLIDs running on the nodes you could then select this option to run a report for? Don't say it is what we would do, but I was wondering what it is that you ask for.
-
error in reading the response soap via pl/sql
I try to call one served web via pl/sql. You can see the answer below;
< h4 > < SOAP - ENV:Envelope xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" container = "http://www.w3.org/2001/XMLSchema" >
< SOAP - ENV:Body >
< ns1:duyuruSorgulamaResponse SOAP - ENV:encodingStyle = "http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1 = "WsDuyuruSorgulama" >
< back xsi: type = "xsd: String" > <! [CDATA [<? xml version = "1.0" encoding = "iso-8859-9"? > < XmlString > < SONUC > 1 < / SONUC > < DURUM > 0 < / HARD wheat > < ACIKLAMA > duyuruSorgulama:BASARILI ISLEM < / ACIKLAMA > < TRXNO > 0 < / TRXNO > < DUYURUADET > 0 < / DUYURUADET > < ADSOYAD > Asd Hhhhhh < / ADSOYAD > < REFNO > < / REFNO > < KUPONKAYITLILIKMESAJ > < / KUPONKAYITLILIKMESAJ > < DUYURULIST > < / DUYURULIST > < CEKILISDUYURULIST > < / CEKILISDUYURULIST]] [[> < / XmlString >]] > < / return >
< / ns1:duyuruSorgulamaResponse >
< / SOAP - ENV:Body >
< / SOAP - ENV:Envelope > < / h4 >
That's how I try to read the application
< h4 >
RESP XMLType.
resp: = resp.extract('/SOAP-ENV:Envelope/SOAP-ENV:Body/child::node () '
, ' xmlns:SOAP - ENV = "http://schemas.xmlsoap.org/soap/envelope/".
xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance".
container = "http://www.w3.org/2001/XMLSchema" '
);
resp: = resp.extract ('ns1:duyuruSorgulamaResponse / text () ',' xmlns:ns1 = "WsDuyuruSorgulama" '); < / h4 >
I'm getting "ORA-30625: shipping on NULL SELF argument method is not allowed" error. I did not understand how the xmltype.extract function works.
Thank youHello
This part returns an empty document because you left out the "back" element in the XPath expression:
resp:= resp.extract('ns1:duyuruSorgulamaResponse/text()','xmlns:ns1="WsDuyuruSorgulama"');
I think that, here, extractValue function can better suit your need:
DECLARE resp xmltype := xmltype( '
]]>1 0 duyuruSorgulama:BASARILI ISLEM 0 0 Asd Hhhhhh Output =.
1 0 duyuruSorgulama:BASARILI ISLEM 0 0 Asd Hhhhhh -
Set the 'Not available' application via the SQL statement
Hi, I am trying to automate the deployment of applications and wonder if anyone knows how I could define the "Unavailable" via a SQL script application. In the views of the APEX_030200 scheme, there is a view called "APEX_APPLICATIONS" with "AVAILABILITY_STATUS" and "UNAVAILABLE_TEXT" columns What I want to do is to run a statement that sets the 'Not AVAILABLE' application before you run the import script.
Thanks, JHello:
You can use the 'wwv_flow_api' to set the State of the application
DECLARE ws_id number; BEGIN select max( workspace_id) into ws_id from apex_applications ; wwv_flow_api.set_security_group_id(ws_id); wwv_flow_api.set_flow_status ( p_flow_id => :app_id, p_flow_status => 'UNAVAILABLE', p_flow_status_message =>'Application being updated...') ; end;
The valid values for p_flow_status are
'AVAILABLE. '
"AVAILABLE_W_EDIT_LINK,"
"AVAILABLE_W_INLINE_EDIT,"
"DEVELOPERS_ONLY,"
"UNAVAILABLE_URL,"
"UNAVAILABLE_PLSQL,"
"RESTRICTED_ACCESS,"
"UNAVAILABLE".CITY
-
How to enable a connection to SQL Denali remotely?
How to enable a connection to SQL Denali remotely?
Hello
Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the public on the TechNet site. Please post your question in the below link:
http://social.technet.Microsoft.com/forums/en-us/category/SQLServer
-
How to parse RSS feeds using QML (waterfalls)?
Hallo native devs! I am a beginner in native development and I want to know how to parse RSS feeds using QML cascading?
I see the example like this:
Page { content: Container { background: Color.White ListView { rootIndexpath: [1] dataModel: XmlDataModel { source: "model.xml" } } } }
but, can I to ' source: ' use 'http://example.com/rss.xml'?
If Yes, how can I analyze?
Thanks for the help!
The QML in your message assumes that the XML file is local, if you use a remote XML file then you will need to firstly using a few backend Qt C++ network code, download, then you can use QML.
I would recommend from the Cascades sample quotes to get an idea of how XmlDataModel analysis work can start to look into the network access code and the file.
-
How use formatting HTML on TextArea in Cascades BB10
I would like to know how to use HTML to format the text to display on a read-only TextArea in Cascades BB10
Didn't know the answer to http://supportforums.blackberry.com/t5/Cascades-Development/How-to-add-HTML-elements-to-a-TextArea/t... ?
Stuart
-
Mr President.
Any body give me advice step by step that how can I use my pl/sql below procedure to take the small schema oracle backup with a touch of the adf.
DECLARE h1 NUMBER; dt VARCHAR2 (20); myschema VARCHAR2(32):='SCOTT'; BEGIN SELECT TO_CHAR (SYSDATE, 'YYYYMMDD') INTO dt FROM DUAL; h1 := DBMS_DATAPUMP.OPEN (operation => 'EXPORT', job_mode => 'SCHEMA', job_name => myschema||'_EXP_' || dt, VERSION => 'COMPATIBLE' ); DBMS_DATAPUMP.set_parallel (handle => h1, DEGREE => 1); DBMS_DATAPUMP.add_file (handle => h1, filename => myschema||'_EXP.LOG', DIRECTORY => 'ADMIN_DIR', filetype => 3 ); DBMS_DATAPUMP.set_parameter (handle => h1, NAME => 'KEEP_MASTER', VALUE => 0 ); DBMS_DATAPUMP.metadata_filter (handle => h1, NAME => myschema||'_EXPR', VALUE => 'IN('''||myschema||''')' ); DBMS_DATAPUMP.add_file (handle => h1, filename => myschema||'_EXP_' || dt || '.DMP', DIRECTORY => 'DATA_PUMP_DIR', filetype => 1 ); DBMS_DATAPUMP.set_parameter (handle => h1, NAME => 'INCLUDE_METADATA', VALUE => 1 ); DBMS_DATAPUMP.set_parameter (handle => h1, NAME => 'DATA_ACCESS_METHOD', VALUE => 'AUTOMATIC' ); DBMS_DATAPUMP.set_parameter (handle => h1, NAME => 'ESTIMATE', VALUE => 'BLOCKS' ); DBMS_DATAPUMP.start_job (handle => h1, skip_current => 0, abort_step => 0); DBMS_DATAPUMP.detach (handle => h1); END; /
Concerning
Hello world!
It's the simple code to call an appModule procedure
public void callStoreprocedureWithoutInput() { String stmt = "BEGIN\n" + " \"dbBackup\"();\n" + "--rollback; \n" + "END;"; PreparedStatement st = null; try { st = getDBTransaction().createPreparedStatement(stmt, 0); st.executeUpdate(); st.close(); } catch (Exception e) { e.printStackTrace(); } }
Concerning
-
Create jobs and positions via PL/SQL script
Hi, it is recommended to insert new jobs and positions via PL/SQL Script?
I know it's possible, I'm not sure if it is recommended. especially when it's via a direct insertion.
Is there an API for it?
I have about 200 + positions I need to set in our Instance of the EBS Test.
Thank you!
The APIs are the best way to do it in batches of charges-
Job: HR_JOB_API
Position: HR_POSITION_API
To know that all the seeds API, add the responsibility of integrated SOA gateway
-
How can I expose a PL/SQL package to a webservice
Hello
Using Jdeveloper 12 c, how can I expose a PL/SQL package as a webservice?
Thanks in advance
Look for the option 'Web of TopLink-DB services provider' under the section of Web Service in the new gallery.
Timo
-
I created a Web page with Adobe Muse and all pages have .html at the end of the address, and this is the only way that links to the page works, or if you type the address, then type .html at the end (for example, www.abcdefg.com/page1.html when I would use www.abcdefg.com/page1 only). How can I fix?
-
How do I get all the SQL executed by my session?
How do I get all the SQL executed by my session?
Published by: user11300376 on 01/28/2013 11:27user11300376 wrote:
I had tried, brings itself however only select table v $ session.Executed orders:
SELECT * FROM MBS_ITEM;
SELECT b.sql_id, b.sql_text
SESSION $ v a, v$ sql b
WHERE a.sql_id = b.sql_id;The output result:
SQL_ID SQL_TEXT
1 4qg3bft0w37rt SELECT b.sql_id, b.sql_text FROM session $ v a, v$ sql b WHERE a.sql_id = b.sql_The listed application is good, but does not limit the output of your session - it should return data from all sessions.
You must add an AND condition in the WHERE clause to limit your session. You can try this (untested)
where audsid=(select userenv('sessionid') from dual);
You can also perform a SQL trace and tkprof to obtain data to SQL executed the trace start and end of the trace.
Maybe you are looking for
-
Babylon has been installed on my computer by devious methods, and I want to remove it completely. Firefox is installed as a product I wanted (installed by myself), but I can't find any instructions about removing it
-
Satellite 2800-600 and Windows 2000
Hello When I install Windows 2000 Prof I have a problem: Inaccessible_Boot_Device. What I need to do to install this system.Sorry for my English Poland Rafal
-
Vista - usb ports are not recognized unknown device
Vista - usb ports are not recognized unknown device. any usb device it appears unknown. all worked a few days hardly, but after that I connected my Kodak camera - which does not, now, nothing works. Any help would be appreciated.
-
I get this error message when starting windows - the message is: Vandenberg Clyde Punjab Scottsdale Columbia Watertown Hebrides has stopped working and I'm not that mean? and since i ' v got this message I can't use internet explore properly and when
-
Hello I'm having a problem with the readers of network disconnected allowing for new drive usb to their drive letter mappings. I have my laptop dv6500z home with windows 7 Home premium connected to my router wirelessly with a couple of shares of x 64