Creating Oracle's XML files in a directory
Hi allI was going through the concepts Oracle XMLDB and discovered that we can create an XML file using the instructions normal select.
Now, I create an Oracle Directory that points to the remote Unix computer.
I want to know if we can create this XML file in the directory that points to the remote Unix directory.
I don't want to use here the concepts of coil or UTL_FILE.
Receive your answer on that.
Thank you
Madhu K.
I'm not sure of your condition. However, here are a few example file writing Oracle's XML to disk.
SQL> drop table test_clob;
Table dropped.
SQL> CREATE TABLE test_clob (id INTEGER,clob_col CLOB);
Table created.
SQL> ed
Wrote file afiedt.buf
1 INSERT INTO test_clob VALUES(1,'
2
3
4 AAA
5 godknows
6 xyz
7
8
9 BBB
10 something
11 zbc
12
13
14 CCCC
15 whoknows
16 mon
17
18* ')
SQL> /
1 row created.
SQL> commit;
Commit complete.
SQL> DECLARE
2 v_xml XMLTYPE ;
3 v_doc XMLDOM.DOMDocument;
4 v_dir VARCHAR2(2000);
5 v_file VARCHAR2(2000);
6 BEGIN
7 v_dir := 'TEST_DIR';
8 v_file := 'emp.xml'; -- name of the output file
9 SELECT xmltype(clob_col)
10 INTO v_xml
11 FROM test_clob
12 WHERE id=1;
13 v_doc := DBMS_XMLDOM.NEWDOMDOCUMENT(v_xml);
14 DBMS_XMLDOM.WRITETOFILE(v_doc, v_dir||'\'||v_file, 'UTF-8');
15 DBMS_XMLDOM.FREEDOCUMENT(v_doc);
16 END;
17 /
PL/SQL procedure successfully completed.
SQL>
- and the generated file:
C:\>type emp.xml
AAA
godknows
xyz
BBB
something
zbc
CCCC
whoknows
mon
C:\>
Another way:
---------------------------------------------------------
SQL> DECLARE
2 v_clob CLOB := EMPTY_CLOB;
3 v_amount INTEGER;
4 /*** Curtesy to odie_63 ***/
5 CURSOR cur_crl IS
6 SELECT xmltype(response_file, nls_charset_id('CHAR_CS')).getclobval() rfile
7 FROM clarity_response_log;
8 /***************/
9 BEGIN
10 dbms_lob.createtemporary(v_clob, TRUE);
11 FOR i IN cur_crl LOOP
12 v_amount := DBMS_LOB.GETLENGTH(i.rfile);
13 Dbms_LOB.WRITEAPPEND(v_clob, v_amount, i.rfile);
14 v_amount := DBMS_LOB.GETLENGTH(CHR(10));
15 Dbms_LOB.WRITEAPPEND(v_clob, v_amount, CHR(10)); --This is for Line break.
16 END LOOP;
17
18 DBMS_XSLPROCESSOR.CLOB2FILE(cl => v_clob,
19 flocation => 'TEST_DIR',
20 fname => 'response.xml',
21 csid => 0);
22 END;
23 /
PL/SQL procedure successfully completed.
SQL>
Tags: Database
Similar Questions
-
read xml files in the directory, and then extract the words from their
I looked in the forums of LabView for a problem similar to mine, but I succumbed to find advice, I need.
Some time previously, I wrote a LabView program to build a dictionary from an array of strings. It was really just a list of words that I used to make a crude search engine.
Now I try to repeat this experience. However, I'm stuck at the first hurdle. I have a directory containing a number of folders and files, including .xml files.
What I have to do is read the individual words in the xml files and then merge the words in a large list. From there, I should be able to make the dictionary, and I hope that my old search engine still works with the new data.
The attachment shows my unsuccessful attempt to create a VI that can first index all files in a directory (what it is) and then list only files ending in ".xml" (which it does not).
Any advice on how to get my word out list would be greatly appreciated!
Adam
Is that what you are looking for? (See attached image VI)
-
How to create a sidecar.xml file?
Hello - I used generator sidecar very rad Johannes and instructions from adobe on how to download the file, but can't seem to make it work. I have a feeling that it's because they both start with a hypothesis:
"Use a text editor or an XML Editor to create a file sidecar.xml..." »
"Writing in a sidecar.xml file.
How to create the file sidecar.xml of origin, in which paste the metadata generated by Johannes tool?
http://projects.nordsueddesign.de/sidecarxml/#
http://help.Adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60606c7754128c7a9c00e-7F ff.html
You use the web interface of the xmlsidecar generator made by Johannes Henseler and push the button it "generate". Copy paste in a plain text file and then replace tex extension txt to xml format. This is how you do a sidecar.xml the easy way.
Subsequently, yo have to import "multiple files" (or "multiple files"... my DPS is a Spanish) Folio Builder.
If the folder revolve correctly, folio Builder will start to swallow the sidecar data and download articles.
This time, while posting, my pc did this with a hundred articles. As happy and busy as a Beaver in heat
Gustavo (detachment of Madrid)
-
How to create the existing XML file bar chart
Hi all
I'm new to flex, I need your help to develop a flex during approx. dashboard we file sample.xml. using what I have to create a bar chart or a pie chart.
Please help me
The XML looks like this...
<? XML version = "1.0" encoding = "utf-8"? >
< user name = "123412343" >
< name >
< name > these < / lastName >
Vijay < firstName > < / name >
< / fullName >
< Preferences >
< modWidth > 235 < / modWidth >
< modHeight > 250 < / modHeight >
< > 1650 totalWidth < / totalWidth >
< > 1650 totalHeight < / totalHeight >
< modsX > 4 < / modsX >
< modsY > 2 < / modsY >
< / Preferences >
< id module = "Status2" >
< fenetreouvrir > true < / fenetreouvrir >
< pointsToShow >
< label p = 'Proposals' / >
< label p = "Project" / >
< label p = "DEP Ptba" / >
< label p = "EPA Ptba" / >
< / pointsToShow >
< dataSetsToShow >
< label > 2006 < / label >
< label > 2007 < / label >
< / dataSetsToShow >
< / module >
< / user >convert this ArrayCollection collection called chartData xml file
var charOption:String = 'totalHeight '; / Use this to set the yField property...
<>
dataProvider = "{chartData}.
categoryField = "time" / >
-
He had to create to my XML file in the XSL file
Hello world
This is the first time that I post my question here in the XML section, in fact I have a XML file as
Now when I retrieve data from this XML file so I need to get the root node in the Dept and 1 node as DeptRow and item as an identifier.<root_node> <node_1> <element>abc</element> </node_1> </root_node>
While she will look like when I will actually try recover data
So for this I need to use Transform method in java and generate an XSL file that can convert data according to my needs without modifying the original file.<Dept> <DeptRow> <Id>abc</Id> </DeptRow> </Dept>
then may - does anyone know what content must exist in the XSL file.
your help would be appreciated too
Thank you
FIZZZ...See a tutorial XSLT.
http://XML.sys-con.com/node/48763 -
Creation of XML file using blackberry waterfalls
Hi all
I use blackberry stunts to create a xml file, which will consist of data QMessage.
The code that I am by train is as below: -.
foreach (const Message &message, inboxMessages) { // Creating QVariant Map for each Message object QVariantMap messageMap; messageMap["address"] = QVariant(); messageMap["date"] messageMap["subject"] = QVariant(message.subject()); messageMap["body"] = ........... / Adding this object to Qvariant List QVariantList messageList= QVariantList() << QVariant(messageMap); } // end of for each loop QVariantMap topLevelMessageMap; topLevelMessageMap[".root"] = QVariant("messages"); topLevelMessageMap["message"] = QVariant(messageList); QVariant myData = QVariant(topLevelMessageMap); // Retrieve the working directory, and create a temporary .xml file in that // location QDir home = QDir::home(); QTemporaryFile file(home.absoluteFilePath("myXMLFile.xml")); // Open the file that was created if (file.open()) { // Create an XmlDataAccess object and save the data to the file XmlDataAccess xda; xda.save(myData, &file);
IN the above code, I create mannualy xml tags using the QVariant class.
However is it possible where xml schema can be used from xslt/xsd and it may be analyzed to generate xml data with data to fill the Message class in accordance with the business logic.
Please suggest
What would you win? in my opinion this isn't a valid usecase for xslas you must complete all the values manually in any case.
You can use xsl with qxmlquery xmldataaccess has no support in his favor. -
How Business Service (file protocol) can read the location of the server XML file
Hi Experts,I have a use case where I have to expose a Web service and as a response, I send a large xml (size max would be 18 MB).
Customer <>- ProxyService (exposed as a Web service) <>- BusinessService (File protocol) < - read - > File.xml
Here the xml response must be stored in the "SomeName.xml" file in the directory of the same server share path.
So when the Client calls ProxyService, inturn would call it BS, where BS inturn would have read the contents of the xml file and pass it back as a response to the customer via PS
Challenge is here using Protocol of file I can't do BS to read the xml file, instead his writing in a new file with conent as input message.
Can someone let me know is it possible to read a xml file using business service.
Note: I know that the PS can read a file using the Protocol of files, but my BS need use cases to read the contents of the file.
Any quick response is more significant.
Thank you
Deba
Cannot use the OSB in this case file adapter, you need to use a file in OSB JCA adapter. Specifically, what is called a 'synchronous reading' JCA adapter type file. Can be created in JDeveloper and then pulls in EPCO, can then be invoked as you want to extract the contents of a file synchronously in a proxy stream.
-
Generate a single XML file of the multiple JDBC result set
Hello
I need to create a single XML file of the multiple result set. The code below is to generate a XML signle leave a single result set, but suppose we have five different tables in the same database and the tables aren't relalted to the other.
for example: select * from SAMPLE_PRODUCT
Select * command
Select * LOGISTICS... and many others.
You can create multiple sets of results by top queries but how can write all values using a JDBC result set in a single xml file? Help, please.
a signle file xml from one generator result
import java.io.StringWriter;
import java.sql.Connection;
to import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
Import javax.xml.parsers.DocumentBuilder;
Import javax.xml.parsers.DocumentBuilderFactory;
Import javax.xml.transform.OutputKeys.
Import javax.xml.transform.Transformer;
Import javax.xml.transform.TransformerFactory;
Import javax.xml.transform.dom.DOMSource;
Import javax.xml.transform.stream.StreamResult;
to import org.W3C.DOM.document;
Import org.w3c.dom.Element;
public class JDBCToXML {}
Public Shared Sub main (string args []) throws Exception {}
DocumentBuilderFactory plant = DocumentBuilderFactory.newInstance ();
DocumentBuilder builder = factory.newDocumentBuilder ();
Doc document = builder.newDocument ();
Element results = doc.createElement ("Results");
doc.appendChild (results);
Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager
.getConnection("jdbc:odbc:RIS","USER","USER");
ResultSet rs = con.createStatement () .executeQuery ("select * from SAMPLE_PRODUCT");
ResultSetMetaData rsmd = rs.getMetaData ();
int colCount = rsmd.getColumnCount ();
While (RS. Next {}
Element line = doc.createElement ("Row");
results.appendChild (row);
for (int i = 1; i < = colCount; i ++) {}
String columnName = rsmd.getColumnName (i);
Object value = rs.getObject (i);
Element node = doc.createElement (columnName);
node.appendChild (doc.createTextNode (value.toString (()));
row.appendChild (node);
}
}
DOMSource domSource = new DOMSource (doc);
TransformerFactory tf = TransformerFactory.newInstance ();
Transformer transformer = tf.newTransformer ();
transformer.setOutputProperty (OutputKeys.OMIT_XML_DECLARATION, 'yes');
transformer.setOutputProperty (OutputKeys.METHOD, "xml");
transformer.setOutputProperty (OutputKeys.ENCODING, "ISO-8859-1");
StringWriter sw = new StringWriter();
StreamResult sr = new StreamResult (sw);
transform. Transform (domSource, sr);
System.out.println (SW. ToString());
con. Close;
RS. Close();
}
}
Thank you
Sumit
Published by: user8687839 on April 4, 2012 23:04
Published by: user8687839 on April 4, 2012 23:09As EJP says, you really want to get the data in a single request, if possible (and I don't see why that shouldn't be the case).
In fact, you really want to get this query to return the data as close the format you need as you can.If you did this on Oracle, for example, I'd get Oracle to produce XML that you can then turn (assuming that you could not itself produce the XML you want directly).
In your case, using some db (access?), and then just get the line structure such as the conversion to XML involves the least amount of faffing about.Rethink the SQL and the rest should be easy.
-
Xml file for reading in the clob in the staging table column
Hello
I am trying to query the intermediate table with the database adapter that has the column type CLOB containing the XML file. How to extract the XML of CLOB and map the fields to the another final scheme variable.
Thank you
Published by: chaitu123 on Sep 20, 2009 08:16(1) when you create DBAdapter on a table that has the clob column watch closely the xsd created for the DBAdapter cloumn clob element must be a String data type
(2) create xsd for Xml files and create the variable of the xsd element
(3) use ora:parseEscapedXML("yourDBAdapterclobElement") for XmlFileVarilable
Krishna
-
Create an image slider using the XML file photo gallery
Hello!
I have created a photo gallery and generated an xml file. I want to implement a cursor image on the home page that performs a simple fade from one image to the other.
I'm not an expert on jQuery. The BC help section says to add code that retrieves in the XML file and THEN add another code query j who would style images and transitions.
I don't know how to do this. Here is my code and it does not work.
If you have a simple solution, it would be great.
There is a script called JSSOR
"< script type =" text/javascript"src ="... / js/jquery-1.9.1.min.js "> < / script >"
<!-use jssor.slider.mini.js (40 KB) instead for immediate release->
<!-jssor.slider.mini.js = (jssor.js + jssor.slider.js)->
< script type = "text/javascript" src = "javascripts/jssor.js" > < / script >
"< script type =" text/javascript"src="javascripts/jssor.slider.js "> < / script >
This is the beginning of the code BC gives to pull from the xml file into a div called "Gallery".
< div id = 'Gallery' > < / div >
< script type = "text/javascript" >
{$(function()}
$.ajax({)
type: 'GET ',.
url: " http://www.performanceaire.com/Fahrenheit-images/BannerGallery/Photogallery.XML ", / / replace with an absolute URL of the XML of your gallery of .
data type: "xml."
success: {function (xml)}
{$(xml).find('img').each (function ()}
location var = ' http://www.performanceaire.com/Fahrenheit-Images/BannerGallery/'; / / Replace with the absolute path to the directory that contains your images
var url = $(this) .attr ('src');
var alt = $(this) .attr ('alt');
$('<li></li>').html (' < a href = "' + place +" + url + ' "> < img src ="' + place + "+ url + '" alt = "' + alt + '" / > < / a > ').appendTo('#gallery');
});
}
});
});
This is the code taken from JSSOR to transitions occur, and it does not work... any ideas?
jQuery (document) .ready (function ($) {}
var options = {}
$AutoPlay: true, / / [optional] If auto play, to activate the slide show, this option must be set to true, the default value is false
$DragOrientation: 1 / / orientation [optional] to drag the slide, 0. drag, 1 horizental, 2 3 vertical or, default value is 1 (note that the $DragOrientation must be the same as $PlayOrientation when $DisplayPieces is more than 1, or in the parking position is not 0)
};
var jssor_slider1 = new $JssorSlider$ ("Gallery", options);
});
< /script >
www.performanceaire.com/index-FS.html
It is perhaps a bit much if you do not top:
-
Generation of XML files in oracle procedure
I have to generate a SQL query as XML files:
- If the number of records in the query result exceeds 40 000 then the data must be divided into two XML files with different file names.
Following XML file format:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <EMP_INFO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <EMP> <CR_NO>12345678</CR_NO> <EMPLOYER_NAME>ABC</EMPLOYER_NAME> <ID_NO>12345678</ID_NO> <EMPLOYEE_NAME>ABC</EMPLOYEE_NAME> </EMP> <EMP> <CR_NO>12345678</CR_NO> <EMPLOYER_NAME>XYZ</EMPLOYER_NAME> <ID_NO>12345678</ID_NO> <EMPLOYEE_NAME>ABC</EMPLOYEE_NAME> </EMP> </EMP_INFO>
- Also, an XML file will contain information from XML file with the number of records in each file:
<?xml version="1.0" encoding="utf-8"?> <Files> <File> <FileName>ABCD071120130001.xml</FileName> <CountOfRecords>499</CountOfRecords> </File> <File> <FileName>ABCD071120130002.xml</FileName> <CountOfRecords>9</CountOfRecords> </File> </Files>
My PL SQL procedure follows, but throws an error:
CREATE OR REPLACE PROCEDURE P_DATAXML AS BEGIN DECLARE XML_PROLOG CLOB := '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'; xml_header clob; xml_trailer clob; tmp_xml clob; tmp_file clob; CURSOR C_REC IS SELECT XMLELEMENT("EMP_INFO", XMLELEMENT("CR_NO", "1234" ), XMLELEMENT("EMPLOYER_NAME", "ABC" ), XMLELEMENT("ID_NO", "9876541" ), XMLELEMENT("EMPLOYEE_NAME", "XYZ" ) ).GETCLOBVAL() AS DATA_XML FROM TABLES; BEGIN -- create the temporary clob : DBMS_LOB.CREATETEMPORARY(TMP_FILE, TRUE); -- fetch records for r in C_REC loop DBMS_LOB.append(TMP_FILE, xml_prolog); DBMS_LOB.append(TMP_FILE, r.DATA_XML); end loop; -- write file to directory : dbms_xslprocessor.clob2file(TMP_FILE, 'CDIR', 'test.xml', nls_charset_id('AL32UTF8')); dbms_lob.freetemporary(TMP_FILE); END; END P_DATAXML;
After my initial coding, I get the error made his first appearance on "dbms_xslprocessor.clob2file":
ORA-21560: 3 argument is null, invalid or out of range
ORA-06512: at "SYS." DBMS_LOB", line 991
ORA-06512: at "XDB". DBMS_XSLPROCESSOR', line 324
What could be wrong?
You were on the right track. Continue to use SQL/XML, in special XML files XMLAGG logical global functions.
The following should answer your initial needs.
For this demonstration, I used resources. Table EMPLOYEES and a batch size of 100. It generates three files, 'file0001.xml' (100 records), "file0002.xml" (7 records) and a summary file:
DECLARE
file_desc_array xmlsequencetype: = xmlsequencetype();
CLOB file_desc_xml;
prolog1 CLOB: = '';
prolog2 CLOB: = '';
BEGIN
for r in)
Select xmlserialize (document
XmlElement ('method'
, xmlattributes ("http://www.w3.org/2001/XMLSchema-instance" under the name "xmlns: xsi" "")
xmlagg)
XmlElement ("EMP"
xmlelement ("ID_NO", e.employee_id)
, xmlelement ("EMPLOYEE_NAME", select)
)
)
)
) as xmldoc
--< generating="" summary="" record="">
xmlelement ("file",
xmlelement ("filename",
, "file" | TO_CHAR (trunc ((rownum-1)/100) + 1, "fm0999"). ".xml".
)
xmlelement ("CountOfRecords", Count
) as file_desc
-->
, "file" | TO_CHAR (trunc ((rownum-1)/100) + 1, "fm0999"). '.xml' as file name
of e hr.employees
Group of trunc ((rownum-1)/100)
)
loop
dbms_xslprocessor.clob2file (prolog1 | r.xmldoc, 'TEST_DIR', r.filename, nls_charset_id ('AL32UTF8'));
file_desc_array.extend;
file_desc_array (file_desc_array. (Last): = r.file_desc;
end loop;
Select xmlserialize (document
XmlElement ("Files", xmlagg (column_value))
)
in file_desc_xml
table (file_desc_array);
dbms_xslprocessor.clob2file (prolog2 | file_desc_xml, 'TEST_DIR', 'summary.xml', nls_charset_id ('AL32UTF8'));
END;
/
-
Create an xml file using the .xsd file
Hi guys,.
Version of DB: Oracle 11g
I was wondering if I had any package that can create a xml file based on a (built-in) .xsd file. I searched but did not find any resource on the internet specific to my problem. Let's say I have an .xsd file. It is possible to load a schema and generate the XML that conform to the .xsd file using sql? If so, I want to store in a CLOB variable.
Please point me to the right direction.
Thank you.
Hello
No, there is no such functionality yet.
To build the XML "manually", according to the XSD, for example using SQL/XML functions (XMLElement, XMLAttributes, and XMLAgg etc.).
-
Generate the XML file with elements and attributes in table Oracle
Hello
I have the following table structure.
CREATE TABLE SPOOL
(
COIL_ID NUMBER (10),
COIL_NUMBER VARCHAR2 (40),
COIL_PO_OPERATING_UNIT VARCHAR2 (20).
COIL_PO_NUMBER VARCHAR2 (40),
MILL_NUMBER VARCHAR2 (2),
MILL_COIL_STATUS VARCHAR2 (15).
ITEM_NUMBER VARCHAR2 (40),
COIL_WEIGHT NUMBER (38),
WEIGHT_UOM VARCHAR2 (10),
DOCUMENT_NUMBER VARCHAR2 (40),
DATE OF DOCUMENT_DATE,
DOCUMENT_STATUS VARCHAR2 (15).
DOCUMENT_TYPE VARCHAR2 (20).
DOCUMENT_SOURCE VARCHAR2 (20).
TEST_ID NUMBER (38),
NUMBER VALUE,
TEST_UOM VARCHAR2 (20).
TEST_STATUS VARCHAR2 (70).
TESTER_LOGIN VARCHAR2 (20).
EQUIPMENT_CODE VARCHAR2 (50).
DOC_STS_MSG VARCHAR2 (600)
)
/
For each record COILID, there could be several folders baased on TEST_ID/VALUE/TEST_UOM etc.
And I would like to prepare the xml file in the following format by selecting data in the COIL?
<? XML version = "1.0"? >
-coil xsi: noNamespaceSchemaLocation = "www.tempel.com/COIL.xsd" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:xdb = "http://xmlns.oracle.com/xdb" >
< CoilId > 1419532 < / CoilId >
< CoilNo > D2221050010A0 < / CoilNo >
Changzhou < CoilPOOperatingUnit > < / CoilPOOperatingUnit >
< CoilPONo > 4619 < / CoilPONo >
< MillNo > 86 < / MillNo >
Test of < MillCoilStatus > < / MillCoilStatus >
C5 050FP800 < ItemNo > < / ItemNo >
< weight > 7076 < / weight >
KILOGRAM of < GLU > < / UDM >
< DocumentNo > 0 < / DocumentNo >
< DocumentDate > 2013 - 01 - 11 < / DocumentDate >
< DocumentStatus > not < / DocumentStatus >
< DocumentType > test < / DocumentType >
CHIGMA1 < DocumentSource > < / DocumentSource >
< DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.4992" TestUnit = "mm" Status = 'NonProcessed' TestId = "135" / >
< test DocStsMsg = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.0128" TestUnit = "mm" Status = 'NonProcessed' TestId = "124" / >
< DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "12" TestUnit = "mm" Status = 'NonProcessed' TestId = "125" / >
< DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.5095" TestUnit = "mm" Status = 'NonProcessed' TestId = "127" / >
< DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.5042" TestUnit = "mm" Status = 'NonProcessed' TestId = "128" / >
< DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.5058" TestUnit = "mm" Status = 'NonProcessed' TestId = "129" / >
< DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.4967" TestUnit = "mm" Status = 'NonProcessed' TestId = "130" / >
< DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.5049" TestUnit = "mm" Status = 'NonProcessed' TestId = "131" / >
< DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.4972" TestUnit = "mm" Status = 'NonProcessed' TestId = "132" / >
< DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.4960" TestUnit = "mm" Status = 'NonProcessed' TestId = "133" / >
< DocStsMsg test = '0' EquipmentCode = "CHIGMA1" TesterLogin = "dpkrueger" Value = "0.4996" TestUnit = "mm" Status = 'NonProcessed' TestId = "134" / >
< / reel >
Can you please guide me how to do it in a single query?
Thanks in advance.Function EXTRACT will force a print in your version:
SELECT XMLElement("Coil", XMLAttributes( 'http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi" , 'www.tempel.com/COIL.xsd' as "xsi:noNamespaceSchemaLocation" ) , XMLForest( COIL_ID as "CoilId" , COIL_NUMBER as "CoilNo" , COIL_PO_OPERATING_UNIT as "CoilPOOperatingUnit" , COIL_PO_NUMBER as "CoilPONo" , MILL_NUMBER as "MillNo" , MILL_COIL_STATUS as "MillCoilStatus" , ITEM_NUMBER as "ItemNo" , COIL_WEIGHT as "Weight" , WEIGHT_UOM as "UOM" , DOCUMENT_NUMBER as "DocumentNo" , DOCUMENT_DATE as "DocumentDate" , DOCUMENT_STATUS as "DocumentStatus" , DOCUMENT_TYPE as "DocumentType" , DOCUMENT_SOURCE as "DocumentSource" ) , XMLAgg( XMLElement("Tests", XMLAttributes( DOC_STS_MSG as "DocStsMsg" , EQUIPMENT_CODE as "EquipmentCode" , TESTER_LOGIN as "TesterLogin" , VALUE as "Value" , TEST_UOM as "TestUnit" , TEST_STATUS as "Status" , TEST_ID as "TestId" ) ) ) ).extract('/*') FROM coil GROUP BY COIL_ID , COIL_NUMBER , COIL_PO_OPERATING_UNIT , COIL_PO_NUMBER , MILL_NUMBER , MILL_COIL_STATUS , ITEM_NUMBER , COIL_WEIGHT , WEIGHT_UOM , DOCUMENT_NUMBER , DOCUMENT_DATE , DOCUMENT_STATUS , DOCUMENT_TYPE , DOCUMENT_SOURCE ;
-
How to create ViewObject to generate the xml file?
Hello everyone...
People, I would like to know if it is possible to create a ViewObject to generate an xml file.
In other words, I have a database table and I need to generate an xml file based on this table.
Someone has already done it?
The ADF swing.
JDeveloper Studio 11.1.1.4.0.Hello
Try this link
Generate the xml file based on the java oracle table using jdeveloper 10 g
-
How to import the XML file into an oracle table using a BPEL process
Hi friends
How can I import XML file in the db oracle table using a BPEL process
(1) I have generated an XML file in my local system with a field
(2) I created a temporary table in my oracledb with the same field in the XML file
(3) that I want to import these XML files which is the local host to my db oracle using a BPEL process
(4) for that what steps should I me fallow please suggest me if there is no document for this?
Thanks in advance
ATHi to
Here you go...
http://blogs.Oracle.com/ajaysharma/2011/03/using_file_adapter_database_adapter_and_mediator_component_in_soa_11g.html
I hope that helps!
Thank you
AJ
Maybe you are looking for
-
How one not acquire Modules for ffx installed behind the firewall?
I have several installations of firefox on platforms behind several firewalls without internet access. They are maintained to easily access LAN servers, containing notes/logs, etc.. I used several addons, more precisely the all-in-One sidebar for sev
-
The mouse settings not saved after reboot/restart
I'm changing the speed at which my mouse pointer moves on the screen. I'm doing a 'demand' the change, and then click on 'ok '. The point of the mouse moves faster in the game. Then after reboot/restart the computer, the mouse setting is default
-
XPS 15 9550, P2415Q, sleep problem
Hello, I recently bought a Dell XPS 15 9550 and a 4 K of Dell's Dell monitor. The monitor is connected to the XPS via HDMI. I use this phone more like a desktop computer, it is connected directly to the router. The monitor goes to sleep after one mi
-
I have a pavilion laptop 2103tu g6. The question is, while I play any audio file, it freezes for 1-2 seconds between the two and the same for all videos also. Previously, I had the same problem last year. Hp technician changed the hard drive. And aft
-
Hi all. I'm writing an app with four pages... I have two questions: 1 - is better a file.qml for each of the application pages or file .qml for all pages in the App? 2. in the second page I retrieve the users input a complex there. On page four, so t