How to read XML data Generated out of Personnel Change Request?
Hi,
Is it possible to read the following attributes of an XML file which is generated from a PCR form created on Enterprise Portal:
1. Time Stamps
2. Data
3. Location
Any pointer will be of a great help.
Thanks
Deepak
hi,
pls chk this link.
/people/tobias.trapp/blog/2006/08/22/xml-processing-in-abap-part-8--using-xslt-for-validation
Regards
Raja
Similar Messages
-
How to read XML data stored in CLOB in Concurrent prog Output
Hi All,
I'm trying to Generate the XML Data as concurrent Program output. I have a PL/SQL package which generated the XML data by using SQL/XML functions. I'm storing the generated XML data in a CLOB variable. But when i try to read the data using fnd_file.put_line(fnd_file.OUTPUT,XML_Data) it doesn't display data more than 32767 bytes.
Please help me out to understand what could be done to read the data in chunks. I have tried many logic's to print chunks of data but the output tags are either chopped off and errors out saying Tag not found.
My logic is as below:
v_handler:= DBMS_XMLGEN.newContext(v_xml_query);
--Sets NULL handling options
DBMS_XMLGen.SetNullHandling(v_handler, dbms_xmlgen.EMPTY_TAG ) ;
--Set special character handling
DBMS_XMLGEN.setConvertSpecialChars(v_handler, TRUE);
-- Specified whether to use an XML attribute to indicate NULLness of particular entity in the XML document
DBMS_XMLGen.useNullAttributeIndicator(v_handler,TRUE);
-- set Checking invalid chars
DBMS_XMLGEN.setCheckInvalidChars(v_handler, TRUE);
-- get the xml data as required
v_xml_data:= DBMS_XMLGEN.getXMLtype(v_handler);
SELECT XMLROOT(v_xml_data.extract('/*'),VERSION '1.0').getClobVal() into v_new_xml_Data from dual;
-- get the length of the xml generated
v_clob_len := dbms_lob.getlength(v_new_xml_Data);
FND_FILE.PUT_LINE(FND_FILE.LOG,'The Clob length is :'|| v_clob_len);
-- logic to process string more than 32767 Processing by each character
v_offset :=1;
while (v_offset <= v_clob_len)
LOOP
v_char := dbms_lob.substr(v_new_xml_Data, 1, v_offset);
IF (v_char = CHR(10))
then
fnd_file.new_line(fnd_file.output, 1);
else
fnd_file.put(fnd_file.output, v_char);
end if;
v_offset := v_offset + 1;
END LOOP;
FND_FILE.PUT_LINE(FND_FILE.LOG,'The offset is :'|| v_offset);
FND_FILE.NEW_LINE(FND_FILE.OUTPUT, 1);
THe above logic is for character by character which is a performance burden? Please let me know if there is any other work around for thisHi,
Thanks for Replying. I have refered http://blog.oraclecontractors.com/?p=69 and then i added that piece of code. Basically, i'm trying to generate a report using XML publisher. To generate the XML data i'm writing a pl/sql package with SQl/XML functions. DBMS_XMLGEN would help me convert the XML Data as is. When the concurrent program runs this XML data will merge with RTF layout and generate required report. I'm able to generate the Report for data less then 32767 bytes. More than the limit i need to pass chunks of XML data to read as output. That's the reason i'm using fnd_file.output. But it reads only 32767 size at a time.
WHen i use the given logic, it works perfectly fine, but it loops for each character, for example if you have 30,000 characters it loops the same, which is peformance burden.
So i tried to write the logic of chunks but still i get the error that XML tag is not found or missing. I'm hoping this is very common issue, but after all my trails, i didn't find the right solution.
the other logic i tried was :
v_new_xml_data varchar2(32767)
v_iterations := CEIL(v_clob_len/v_chunk_length); -- v_chunk_length is 32767 and v_clob_length is length of the XML data stored inthe clob variable
For i in 0..v_iterations
LOOP
FND_FILE.put_line (fnd_file.log,'the loops v_pos :'||i||' and v_clob_length :'||v_clob_len);
v_new_xml_data := DBMS_LOB.SUBSTR ( V_XML_DATA,v_chunk_length,(i*v_chunk_length)+1);
FND_FILE.PUT_LINE (FND_FILE.OUTPUT,v_new_xml_data); -- read the output for every 32767 chunks
FND_FILE.PUT_LINE(FND_FILE.LOG, 'Chunk length is :'||((i*v_chunk_length)+1));
END LOOP;
FND_FILE.put_line (fnd_file.log,'out of loop');
FND_FILE.put_line (fnd_file.log,'length of new xml is '||v_clob_len);
Please, let me know if you need Further clarifications on the same. -
How to read xml data from jsf,
Hi
I would like to know how to read data in an xml so as we can display that data onto the jsf page to the user, say as a data table, or in an output txt box etc...This is nothing JSF-special. Just convert XML to objects (DTO's) and then use them in JSF.
There are several ways to crawl the XML tree. JXPath and DOM4J are popular. -
How to read XML Data stored as Clob
Hi
I am new to clob & XML types...
An XML data has been inserted into a Clob field in a Oracle(9.2.0.8.0) Table
CREATE TABLE TEMP
SNO NUMBER(5),
STR_VAL LONG,
CREATED_DT DATE DEFAULT sysdate,
COL2 CLOB,
COL3 SYS.XMLTYPE
SELECT dbms_lob.getlength(col2) from temp
->24754
SQL> select col2 from temp;
COL2
<DataSet1>
<TAGSDATATABLE>
<TAG_NAME>KST20001</TAG_NA
If i use the above stmt it shows only pice of data
how can i get the actual data from this column.
could anyone help to get the data.
Regards
Prakash
Edited by: user12957183 on Aug 25, 2010 12:25 AMInsert data in to XMLTYPE table from clob variable:
SQL> ed
Wrote file afiedt.buf
1 declare
2 my_clob CLOB := '<DataSet1><TAGSDATATABLE><TAG_NAME>KST20001</TAG_NAME>
3 </TAGSDATATABLE><TAGSDATATABLE><TAG_NAME>KST20002</TAG_NAME></TAGSDATATABLE>
4 <TAGSDATATABLE><TAG_NAME>KST20003</TAG_NAME></TAGSDATATABLE>
5 <TAGSDATATABLE>
6 <TAG_NAME>KST20004</TAG_NAME>
7 </TAGSDATATABLE>
8 <TAGSDATATABLE>
9 <TAG_NAME>KST20005</TAG_NAME>
10 </TAGSDATATABLE>
11 <TAGSDATATABLE>
12 <TAG_NAME>KST20006</TAG_NAME>
13 </TAGSDATATABLE>
14 <TAGSDATATABLE>
15 <TAG_NAME>KST20007</TAG_NAME>
16 </TAGSDATATABLE>
17 <TAGSDATATABLE>
18 <TAG_NAME>KST20008</TAG_NAME>
19 </TAGSDATATABLE>
20 <TAGSDATATABLE>
21 <TAG_NAME>KST20009</TAG_NAME>
22 </TAGSDATATABLE>
23 <TAGSDATATABLE>
24 <TAG_NAME>KST20010</TAG_NAME>
25 </TAGSDATATABLE>
26 <TAGSDATATABLE>
27 <TAG_NAME>KST20009</TAG_NAME>
28 </TAGSDATATABLE>
29 </DataSet1>';
31 BEGIN
33 INSERT INTO my_tab1 VALUES(XMLTYPE(my_clob));
34* end;
SQL> /
PL/SQL procedure successfully completed.
SQL> desc my_tab1;
Name
TABLE of XMLTYPE
SQL>
-- For larger data:
SQL> ed
Wrote file afiedt.buf
1 declare
2 my_clob CLOB := '<DataSet1>
3 <TAGSDATATABLE>
4 <TAG_NAME>KST20001</TAG_NAME>
5 </TAGSDATATABLE>
6 <TAGSDATATABLE>
7 <TAG_NAME>KST20002</TAG_NAME>
8 </TAGSDATATABLE>
9 <TAGSDATATABLE>
10 <TAG_NAME>KST20003</TAG_NAME>
11 </TAGSDATATABLE>
12 <TAGSDATATABLE>
13 <TAG_NAME>KST20004</TAG_NAME>
14 </TAGSDATATABLE>
15 <TAGSDATATABLE>
16 <TAG_NAME>KST20005</TAG_NAME>
17 </TAGSDATATABLE>
18 <TAGSDATATABLE>
19 <TAG_NAME>KST20006</TAG_NAME>
20 </TAGSDATATABLE>
21 <TAGSDATATABLE>
22 <TAG_NAME>KST20007</TAG_NAME>
23 </TAGSDATATABLE>
24 <TAGSDATATABLE>
25 <TAG_NAME>KST20008</TAG_NAME>
26 </TAGSDATATABLE>
27 <TAGSDATATABLE>
28 <TAG_NAME>KST20009</TAG_NAME>
29 </TAGSDATATABLE>
30 <TAGSDATATABLE>
31 <TAG_NAME>KST20010</TAG_NAME>
32 </TAGSDATATABLE>
33 <TAGSDATATABLE>
34 <TAG_NAME>KST20009</TAG_NAME>
35 </TAGSDATATABLE>
36 <TAGSDATATABLE>
37 <TAG_NAME>KST20009</TAG_NAME>
38 </TAGSDATATABLE>
39 <TAGSDATATABLE>
40 <TAG_NAME>KST20009</TAG_NAME>
41 </TAGSDATATABLE>
42 <TAGSDATATABLE>
43 <TAG_NAME>KST20009</TAG_NAME>
44 </TAGSDATATABLE>
45 <TAGSDATATABLE>
46 <TAG_NAME>KST20010</TAG_NAME>
47 </TAGSDATATABLE>
48 <TAGSDATATABLE>
49 <TAG_NAME>KST20009</TAG_NAME>
50 </TAGSDATATABLE>
51 <TAGSDATATABLE>
52 <TAG_NAME>KST20009</TAG_NAME>
53 </TAGSDATATABLE>
54 <TAGSDATATABLE>
55 <TAG_NAME>KST20009</TAG_NAME>
56 </TAGSDATATABLE>
57 <TAGSDATATABLE>
58 <TAG_NAME>KST20009</TAG_NAME>
59 </TAGSDATATABLE>
60 <TAGSDATATABLE>
61 <TAG_NAME>KST20010</TAG_NAME>
62 </TAGSDATATABLE>
63 <TAGSDATATABLE>
64 <TAG_NAME>KST20009</TAG_NAME>
65 </TAGSDATATABLE>
66 <TAGSDATATABLE>
67 <TAG_NAME>KST20009</TAG_NAME>
68 </TAGSDATATABLE>
69 <TAGSDATATABLE>
70 <TAG_NAME>KST20009</TAG_NAME>
71 </TAGSDATATABLE>
72 <TAGSDATATABLE>
73 <TAG_NAME>KST20009</TAG_NAME>
74 </TAGSDATATABLE>
75 <TAGSDATATABLE>
76 <TAG_NAME>KST20010</TAG_NAME>
77 </TAGSDATATABLE>
78 <TAGSDATATABLE>
79 <TAG_NAME>KST20009</TAG_NAME>
80 </TAGSDATATABLE>
81 <TAGSDATATABLE>
82 <TAG_NAME>KST20009</TAG_NAME>
83 </TAGSDATATABLE>
84 <TAGSDATATABLE>
85 <TAG_NAME>KST20009</TAG_NAME>
86 </TAGSDATATABLE>
87 <TAGSDATATABLE>
88 <TAG_NAME>KST20009</TAG_NAME>
89 </TAGSDATATABLE>
90 <TAGSDATATABLE>
91 <TAG_NAME>KST20010</TAG_NAME>
92 </TAGSDATATABLE>
93 <TAGSDATATABLE>
94 <TAG_NAME>KST20009</TAG_NAME>
95 </TAGSDATATABLE>
96 <TAGSDATATABLE>
97 <TAG_NAME>KST20009</TAG_NAME>
98 </TAGSDATATABLE>
99 <TAGSDATATABLE>
100 <TAG_NAME>KST20009</TAG_NAME>
101 </TAGSDATATABLE>
102 <TAGSDATATABLE>
103 <TAG_NAME>KST20009</TAG_NAME>
104 </TAGSDATATABLE>
105 <TAGSDATATABLE>
106 <TAG_NAME>KST20010</TAG_NAME>
107 </TAGSDATATABLE>
108 <TAGSDATATABLE>
109 <TAG_NAME>KST20009</TAG_NAME>
110 </TAGSDATATABLE>
111 <TAGSDATATABLE>
112 <TAG_NAME>KST20009</TAG_NAME>
113 </TAGSDATATABLE>
114 <TAGSDATATABLE>
115 <TAG_NAME>KST20009</TAG_NAME>
116 </TAGSDATATABLE>
117 <TAGSDATATABLE>
118 <TAG_NAME>KST20009</TAG_NAME>
119 </TAGSDATATABLE>
120 <TAGSDATATABLE>
121 <TAG_NAME>KST20010</TAG_NAME>
122 </TAGSDATATABLE>
123 <TAGSDATATABLE>
124 <TAG_NAME>KST20009</TAG_NAME>
125 </TAGSDATATABLE>
126 <TAGSDATATABLE>
127 <TAG_NAME>KST20009</TAG_NAME>
128 </TAGSDATATABLE>
129 <TAGSDATATABLE>
130 <TAG_NAME>KST20009</TAG_NAME>
131 </TAGSDATATABLE>
132 <TAGSDATATABLE>
133 <TAG_NAME>KST20009</TAG_NAME>
134 </TAGSDATATABLE>
135 <TAGSDATATABLE>
136 <TAG_NAME>KST20010</TAG_NAME>
137 </TAGSDATATABLE>
138 <TAGSDATATABLE>
139 <TAG_NAME>KST20009</TAG_NAME>
140 </TAGSDATATABLE>
141 <TAGSDATATABLE>
142 <TAG_NAME>KST20009</TAG_NAME>
143 </TAGSDATATABLE>
144 <TAGSDATATABLE>
145 <TAG_NAME>KST20009</TAG_NAME>
146 </TAGSDATATABLE>
147 </DataSet1>';
148 l_xmltype xmltype;
149 BEGIN
150 --l_xmltype := my_clob;
151 INSERT INTO my_tab1 VALUES(XMLTYPE(my_clob));
152* end;
SQL> /
PL/SQL procedure successfully completed.
SQL> Edited by: AP on Aug 25, 2010 4:46 AM -
I need urgent help with this code to read xml nodes from an xml file.
This is the HttpService
<mx:HTTPService id="appraisalData"
url="assets/appraisal.xml"
result="HandleDataResult(event)"
/>
::SCRIPT::
[Bindable]
private var _appData:XMLList=new XMLList();
private function HandleDataResult(event:ResultEvent):void
_appData=event.result.appraisal.APPRAISAL;
I want to extract nodes from this XMLList and fill my components
Like:
<components:HeaderSection width="100%" headerData="{XML(_appData[0])}"/>
Here's the XML file sample:
<?xml version="1.0"?>
<APPRAISAL>
<ACTIONS/>
<RATINGSTATUS>
<MIDYEAR>
<EDITABLE>false</EDITABLE>
<VISIBLE>true</VISIBLE>
</MIDYEAR><YEAREND>
<EDITABLE>false</EDITABLE>
<VISIBLE>true</VISIBLE>
</YEAREND></RATINGSTATUS>
<HEADER>
<PLAN_VERSION>01</PLAN_VERSION>
<APPRAISAL_ID>4B1DF5B7B24100A7E1008000AC11A294</APPRAISAL_ID>
<EMPLOYEE>Tom Smith</EMPLOYEE>
<LEADER>Bob string hello Jr</LEADER>
<APPRAISAL_TYPE>2010 Individual Contributor</APPRAISAL_TYPE>
<AP_START_DATE>01/01/2009</AP_START_DATE>
<AP_END_DATE>12/31/2009</AP_END_DATE>
<AP_STATUS>2</AP_STATUS>
<AP_STATUS_NAME>In Planning</AP_STATUS_NAME>
<AP_STATUS_SUB>4</AP_STATUS_SUB>
<AP_STATUS_SUB_NAME>Pending Transfer</AP_STATUS_SUB_NAME>
<ORGUNIT>Payroll Test Org.2</ORGUNIT>
<PERSONAL_AREA>CA-Catalina Island</PERSONAL_AREA>
<PERSONAL_SUBAREA>Teamsters - 495</PERSONAL_SUBAREA>
<EE_GROUP>Hourly</EE_GROUP>
<EE_SUBGROUP>Full Time Non-Exempt</EE_SUBGROUP>
</HEADER>Honeeeey, I'm hooome! So... here's the code:
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.collections.ArrayCollection;
private var myRetrivedData:ArrayCollection;
private function getXMLData():void
httpService.send();
private function httpFaultHandler(event:FaultEvent):void
Alert.show("Cannot load XML file.","Error");
private function httpResultHandler(event:ResultEvent):void
myRetrivedData=event.result.elements.element;
]]>
</mx:Script>
<mx:HTTPService id="httpService" url="someXMLFile.xml"
fault="httpFaultHandler(event)" result="httpResultHandler(event)"/>
<mx:DataGrid id="myDataGrid" dataProvider="{myRetrivedData}"/> -
Hi All,
I have one requirement. I have one URL which gives me data in XML format. I need to read this file and store this data into my SAP tables.
Can anybody suggest how read this XML file using URL?
Thanks in advance,
P.Shridhar.Use a Server java proxy generated from your inbound message interface which would make a URLConnection to the specified URL after it gets triggered by BPM. A code snippet to achieve the same could be
URL url = null;
URLConnection conn = null;
BufferedReader in = null;
url = new URL("http://someurl.someserver.com");
conn = url.openConnection();
in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line = null;
StringBuffer xml = new StringBuffer();
while ((line = in.readLine()) != null){
xml.append(line);
-- amol -
How to read xml data in ajava file?
Hi,
I am very new to web servies. I am having a xml file, which has some data. I want to get tht data in my java class.How can I do tht? i would appreciate if anyone help me out.http://java.sun.com/webservices/docs/1.6/tutorial/doc/index.html
-
How to read xml file and place it into an internal table...
hello all,
can any one help me in - how to read xml data file (placed in application server) and placing the same into an internal table (remove the xml tags or say fetching the xml data without xml tags).Hi Murashali,
use this.
TYPES: BEGIN OF day,
name TYPE string,
work(1) TYPE c,
END OF day.
DATA: BEGIN OF week,
day1 TYPE day,
day2 TYPE day,
day3 TYPE day,
day4 TYPE day,
day5 TYPE day,
day6 TYPE day,
day7 TYPE day,
END OF week.
DATA xml_string TYPE string.
DATA result LIKE week.
week-day1-name = 'Monday'. week-day1-work = 'X'.
week-day2-name = 'Tuesday'. week-day2-work = 'X'.
week-day3-name = 'Wednesday'. week-day3-work = 'X'.
week-day4-name = 'Thursday'. week-day4-work = 'X'.
week-day5-name = 'Friday'. week-day5-work = 'X'.
week-day6-name = 'Saturday'. week-day6-work = ' '.
week-day7-name = 'Sunday'. week-day7-work = ' '.
CALL TRANSFORMATION ...
SOURCE root = week
RESULT XML xml_string.
CALL TRANSFORMATION ...
SOURCE XML xml_string
RESULT root = result.
Regards,
Vijay -
How to read the data from Excel file and Store in XML file using java
Hi All,
I got a problem with Excel file.
My problem is how to read the data from Excel file and Store in XML file using java excel api.
For getting the data from Excel file what are all the steps i need to follow to get the correct result.
Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
Thanks & Regards,
Sreenu,
[email protected],
india,If you want someone to do your work, please have the courtesy to provide payment.
http://www.rentacoder.com -
How to read XML file and update the data in MS CRM 2011?
Hi Folks,
Can anyone please help me finding some references to read XML files and push the data to MS CRM 2011 preferably by using a console application.
Please let me know if any ways of handling it in simple ways.
Thanks,
SriHI,
How to read XML file:
https://social.msdn.microsoft.com/Forums/en-US/5dd7261b-86c4-4ca8-ba87-95196ef3ba50/need-to-display-xml-file-in-textboxes-edit-the-data-and-save-the-new-xml-file?forum=csharpgeneral
How to work with CRM:
ClientCredentials credentials = new ClientCredentials();
credentials.Windows.ClientCredential = new System.Net.NetworkCredential("USER", "Password", "Domain");
Uri uri = new Uri("http://server/Organization/XRMServices/2011/Organization.svc");
OrganizationServiceProxy proxy = new OrganizationServiceProxy(uri, null, credentials, null);
proxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
IOrganizationService service = (IOrganizationService)proxy;
//using "service" you can create, update and retrieve entities.
More information here about service functions:
https://msdn.microsoft.com/en-us/library/gg328198.aspx -
How to read xml file as shown below.
Hello,
I am using flash builder 4 and currently working on implementing AIR application.
I need to read xml file data.
Normal xml files are easy to read and i am much more aware of it.
But can any one have idea how to read XML file which is given below.
<node>
<key>ID</key>
<integer>1</integer>
<key>Name</key>
<string>Dhwani</string>
<key>Postno</key>
<integer>20</integer>
<key>deskname</key>
<string>flex</string>
<key>empid</key>
<integer>25</integer>
<key>projectname</key>
<string>abc</string>
</node>
Here i have xml file in form of key value pair. <key> node shows name of the key and after that <integer> or <string> node are the value for that specific key.
if i select node.key then it shows me all the keys. and from that i cant make out what is the value for key ID.
Is there any way to take first node and then second. i mean first i ll take value of key and store it into some arraycollection. and then value will be stored.
Any help is appreciated.. Looking for positive reply.
Thanks
DhwaniThere are different methods to access XML data which have pro's and cons. Let us know more about what you want to do and we can help you.
-
How to read XI Data type in Java code and populate as array list, using UDF
Hi,
How to read XI Data type in Java code and populate as array list, using UDF?
Is there any API using which the XI data types can be read?
Kindly reply.
RichaInput Structure:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:CustomerCreateResp xmlns:ns0="urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100">
<CUSTOMER>
<item>
<CUSTOMERNO/>
<MDMCUSTOMER/>
<CREATE_DATE/>
<RETURN>
<TYPE/>
<MESSAGE/>
</RETURN>
<PT_CONTPART_RETURN>
<item>
<MDM_CONTACT/>
<CONTACT/>
</item>
</PT_CONTPART_RETURN>
<PARTNERS>
<item>
<CUSTOMERNO/>
<PARTNER_FUNCTION/>
<PARTNER_NUMBER/>
<DEFAULT_PARTNER/>
</item>
</PARTNERS>
</item>
</CUSTOMER>
</ns0:CustomerCreateResp>
Output structure
(Sample output structure.This actually needs to be mapped and generated using UDF)
<?xml version="1.0" encoding="UTF-8"?>
<ns1:updateCustomer xmlns:ns1="urn:xiSericeVi"><ns1:customer><ns2:ArrayList xmlns:ns2="java:sap/standard">[]</ns2:ArrayList></ns1:customer><ns1:name>2344566</ns1:name></ns1:updateCustomer> -
How to read XML SpreadSheet using OleDb Provider
Hi All,
I have generated an xml spreadsheet (*.xls) using XSL. I have another program that reads this spreasheet and processes it.
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + filnavn + ";" + "Extended Properties=Excel 8.0;"
Dim objCon As OleDbConnection = New OleDbConnection(sConnectionString)
objCon.Open()
Dim objCmdSelect As OleDbCommand = New OleDbCommand("SELECT * FROM [General$]", objCon)
Dim objAdapater As OleDbDataAdapter = New OleDbDataAdapter()
objAdapater.SelectCommand = objCmdSelect
Dim _DSGen As DataSet = New DataSet()
objAdapater.Fill(_DSGen)
I m facing an issue while opening a connection to the generated spreadsheet. It says "{"External table is not in the expected format."}".
My Connection string is
"Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + filnavn + ";" + "Extended Properties=Excel 8.0;"
Do i need to change anything to this string ? I tried using a dataset and calling dataSet.ReadXml(excelFileName); But the dataset doesnt contain my table. Any inputs on how to read an xml spreadsheet ?
How to read XML SpreadSheet in OleDb? How to Convert XML SpreadSheet to Microsoft Office Excel Sheet?
Many ThanksHi,
You'lll most likely have better luck posting this in a Microsoft forum. This forum deals with issues specific to querying the Oracle database via the Oracle OLEDB provider.
Cheers,
Greg -
Reading XML file generated through XMLGEN
Hi,
I have the following problem and I hope someone can give me an advise.
I generated a simple XML document through the packages XMLGEN.
This document is stored in a table in CLOB column.
After this document has been processed (changed) from the web server's ASP pages, I want to read this (changed) XML document (again in the a table in a CLOB)
to compare it against relational data.
There is not external DTD or schema of this XML.
I was thinking to read the elements from the XML/CLOB one-by-one and process them as needed.
I'm reading already over one week the Oracle manuals, but I can't find any good samples that would help me.
Does anyone know a nice PL/SQL sample to solve this problem?
Here is a sample of the XML data:
>>>>>>>>>
?xml version="1.0"?>
<Subscriber-Detail>
<Subscriber>
<Member-ID>0250149556</Member-ID>
<DIVISION-ID>003</DIVISION-ID>
<UNIT-ID>004</UNIT-ID>
<Last-Name>PUBLIC</Last-Name>
<First-Name>JOE</First-Name>
<Birthday_DT>29/06/1961</Birthday_DT>
<Address>2200 PEATON PLACE</Address>
<City>WOLVERHAMPTON</City>
<Salary>71500.00</Salary>
<Smoker_YN>Y</Smoker_YN>
</Subscriber>
</Subscriber-Detail>
<<<<<<<
Environment: Oracle 9i R2 - no JAVA, pure PL/SQL
Any help much appreciated.
TIA
Thanks
FredWill these help ?
How to use PL/SQL to read and manipulate data from a xml file
How to Read XML tags.... -
Reading XML Data from ABAP Program?
Hi,
How do I read XML Data from an ABAP Program? For example if I have the below basic XML Code-
<xml>
<Name> Thiru </Name>
<Age> 24 </Age>
<City> chennai </Chennai>
</xml>
How do i read the data within the Name,Age, and City tags into variables in the ABAP Program?
Regards,
Thiruif you decide to do in XSLT, I have a sample list here:
XML file like this:
<?xml version="1.0" encoding="UTF-16"?>
<F>
<P1>
<t_1>value1</t_1>
<t_2>testvalue</t_2>
</P1>
<P2>
</P2>
</F>
XSLT file like this:
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sapxsl="http://www.sap.com/sapxsl" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:template match="F">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<<b>DOCUMENT</b>>
<xsl:apply-templates/>
</<b>DOCUMENT</b>>
</asx:values>
</asx:abap>
</xsl:template>
<xsl:template match="P1">
<ENTRY>
<<b>T_1</b>><xsl:value-of select="t_1"/></T_1>
<<b>T_2</b>><xsl:value-of select="t_2"/></T_2>
</ENTRY>
</xsl:template>
</xsl:transform>
ABAP program like this:
DATA: BEGIN OF wa_upload,
text(255) TYPE c,
END OF wa_upload,
itab_upload LIKE TABLE OF wa_upload,
BEGIN OF wa_document,
t_1 TYPE string,
t_2 TYPE string,
END OF wa_document,
itab_document LIKE TABLE OF wa_document.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'XXXXX'
filetype = 'ASC'
TABLES
data_tab = itab_upload.
CALL TRANSFORMATION zrappel_xml_test
SOURCE XML itab_upload
RESULT <b>document</b> = itab_document.
You should pay attention to the bold words.
hope it will be helpful
thanks
Maybe you are looking for
-
How can I get this to work with NAT?
Hi Masters, I need to add a route-map to a static NAT but the option seems to be available only if using inside/outside NAT, not if using enable NAT. This is a CISCO1921/K9 running 15.2(4)M6 Here's what I mean: R2(config)#ip nat inside source stat
-
Oracle + php take long time
hello partners, in this last days i've been developing an application in php + oracle 10g like database engine. i'm using oci8 extension, it's been a headache for me because a simple database request take a long time, for example: SELECT e.SECUENCIA
-
New install. New install of Java for Mac Opened a new doc, text box and when scrolling through the text selections... illustrator crashes. Is it a non compatibility issue with an older program with on a new OS macBook Pro?
-
Inspection lot not getting create for 01 Insp type after Intransit
Hi Qm Gurus, I have a Material 'A' which is producing in the plant IN05 and transferring to IN06 plant. We have Scheduling agreement PO for this. After Scheduling Agreement we are doing Transferring the Goods thro 351 GI Movement type. So now the par
-
Impossible de synchroniser mon IPhone 4 avec ITunes : message " en attente de modifications"
Bonjour, la synchronisation de mon IPhone 4 evec ITunes de mon mac book air se bloque à l' étape 4 avec le massage " en attente de la modification des applications " Que faire ?