Reference a DSL from CDATA section in an Xml file
I use a DSL along with some XML files in an Eclipse project. I would like to reference some of the DSL entities from within a CDATA section in the XML files and provide content assist for doing so.
Would I need to define a DSL for the XML and then implement some DSL cross referencing ?
Would I lose the default XML features of Eclipse if I do so ?
Is there a way to overload the XML support built into Eclipse for implementing this ?
I don't know about the extension capabilities of the XML editor. You would need to investigate how this editor can be extended first. This might be a question for Eclipse Web Tools Platform, if you use that XML editor (there are several XML editor plugins available).
Similar Messages
-
Inserting data from a table to an XML file
I want to insert the values from this xml file emp.xml into a table Employees :
<EMPLOYEES>
<EMP>
<EMPNO>7369</EMPNO>
<ENAME>SMITH</ENAME>
<JOB>CLERK</JOB>
<HIREDATE>17-DEC-80</HIREDATE>
<SAL>800</SAL>
</EMP>
<EMP>
<EMPNO>7499</EMPNO>
<ENAME>ALLEN</ENAME>
<JOB>SALESMAN</JOB>
<HIREDATE>20-FEB-81</HIREDATE>
<SAL>1600</SAL>
<COMM>300</COMM>
</EMP>
<EMP>
</EMPLOYEES>
and here is my Employee table in Oracle 9i database
SQL> DESC EMPLOYEE;
Name Null? Type
EMPNO NUMBER
EMPNAME VARCHAR2(10)
JOB VARCHAR2(10)
HIREDATE DATE
SAL NUMBER
After getting help from the members i was able to do the insert of data from the xml file to the table..how to do the insert of data from the table to the xml file.
Regards,
RenuHello michaels , thank you for the solution, still i am having some problems
Here is what i have done :
1.
SQL> CREATE DIRECTORY my_table_dir AS 'E:\table_files'
2 ;
Directory created.
2.
SQL> select * from myemp;
ENAME
SMITH
ALLEN
3.
This is the content of the existing xml file saved in the directory E:\table_files as emp.xml
<EMPLOYEES>
<EMP>JIM</EMP>
<EMP>RICK</EMP>
</EMPLOYEES>
4.
Now i executed this code :
declare
emp_xml xmltype;
begin
select sys_xmlagg (column_value, sys.xmlformat ('EMPLOYEES')) emp_xml
into emp_xml
from table (xmlsequence (cursor (select *
from myemp
where ename in ('SMITH', 'ALLEN')),
sys.xmlformat ('EMP')
dbms_xslprocessor.clob2file (emp_xml.getclobval (), 'E:\table_files', 'emp.xml');
end;
And the Error i got is :
declare
ERROR at line 1:
ORA-29280: invalid directory path
ORA-06512: at "SYS.UTL_FILE", line 18
ORA-06512: at "SYS.UTL_FILE", line 424
ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 46
ORA-06512: at line 12 -
Import/export data from ms sql 7 to xml file in a particular xpdl format
I'm trying to write java program to import/export data from ms sql 7 to xml file in a particular xpdl format. Can anyone suggest how to do it?
take a glance at what these guys do: http://www.openbusinessengine.org/docs/guide.html
-
Hello
My objective is to have a xml file created from a list for anonymous access. The SharePoint RSS feed is a .aspx file not xml, as shown below:
_layouts/listfeed.aspx?List=21c2cdaa%2D52f3%2D4057%2Db674%2D45e63ba77e31&View=535eb328%2Db5fb%2D45c5%2D8fe8%2Da130e92afc41
Also, is there a way to do this so that the xml content has current data like the list.
Thank you for any insight and direction.Hi,
According to your post, my understanding is that you wanted to create a xml file from a SharePoint list.
To generate a XML file, we can use the SharePoint Object Model or PowerShell to achieve it.
Generate a hierarchical XML file from SharePoint list using Client Object Model.
http://maxderungs.wordpress.com/2012/05/12/generate-a-hierarchical-xml-file-from-sharepoint-list/
Get SharePoint list items and export them to XML using PowerShell
http://www.robertkuzma.com/2012/09/get-sharepoint-list-items-and-export-them-to-xml-using-powershell/
More reference:
http://www.robertkuzma.com/2010/08/how-to-create-a-custom-xml-output-using-sharepoint-services-3-0/
http://traceynolte.com/blog/convert-sharepoint-list-to-xml/
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Selecting the first 4000 characters from a tag in an xml file
Oracle Enterprise Edition 11.1.0.7 64 bit (Jan 2012 CPU applied)
Windows 2003 64 bit
We have an XML file with the following sample format.
<?xml version="1.0"?>
<HR>
<EMP>
<FNAME>JOHN</FNAME>
<LNAME>DOE</LNAME>
<COMMENT>Comment with less than 4000 characters</COMMENT>
</EMP>
<EMP>
<FNAME>JANE</FNAME>
<LNAME>DOE</LNAME>
<COMMENT>Comment with more than 4000 characters</COMMENT>
</EMP>
</HR>
The query below
(full disclosure: which I took from odie_63's response in Creating External Table using Xml Dataset - how to include null values? and added the CURSOR_SHARING_EXACT hint on the top)
works when the contents of the <Comment> tag are smaller than 4000 characters. If it is more than 4000 I get
ORA-01706: user function result value was too large
SELECT /*+ CURSOR_SHARING_EXACT */
FROM XMLTable(
'/HR/EMP'
passing xmltype( bfilename('DATA_PUMP_DIR','emp.xml'), nls_charset_id('CHAR_CS') )
columns
first_name varchar2(30) path 'FNAME',
last_name varchar2(30) path 'LNAME',
comments varchar2(4000) path 'COMMENT'
I found another query where someone was doing a substring (I think to get only the first 4000 characters from the tag) here.
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14638197 (See OP's post)
TERMINATION_DATE VARCHAR(32) path 'TerminateDate/substring(text(), 1, 32)',
So I updated my query to be
SELECT /*+ CURSOR_SHARING_EXACT */
FROM XMLTable(
'/HR/EMP'
passing xmltype( bfilename('DATA_PUMP_DIR','emp.xml'), nls_charset_id('CHAR_CS') )
columns
first_name varchar2(30) path 'FNAME',
last_name varchar2(30) path 'LNAME',
comments varchar2(4000) path 'COMMENT/substring(text(),1,4000)'
The query runs without an error when the <comment> tag has 4000 or less characters but still errors out with it is more than 4000.
I found an alternative method to do the SUBSTRING here in Herald ten Dam's reponse in Re: A view over XML that is not 1:1
code varchar2(30) path 'substring(code,1,3)',
so I tried this:
SELECT /*+ CURSOR_SHARING_EXACT */
FROM XMLTable(
'/HR/EMP'
passing xmltype( bfilename('DATA_PUMP_DIR','emp.xml'), nls_charset_id('CHAR_CS') )
columns
first_name varchar2(30) path 'FNAME',
last_name varchar2(30) path 'LNAME',
comments varchar2(4000) path 'substring(COMMENT,1,4000)'
but that doesn't work either.
How can I extract the first 4000 characters of the <COMMENT> tag so that the query doesn't fail.
We are not using any other XMLDB features at this time. This is the first we've started looking into using Oracle built in XML features, so we might not have setup something that other's might know to specifically setup to start using the XML features in Oracle 11.1
Thanks in advance,
Wallywalls99 wrote:
This is regardless of the COMMENTS tag being 4000 characters or more and the same with the ideas from Odie.
WallyNo idea if it is an issue with your version. I don't have your version to test but following works for me. Does this simple test work?
SQL> select * from v$version ;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for Linux: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> set define off
SQL> select dbms_xmlgen.convert(xmlserialize(content xmltype('<brand>Ben & Jerry</brand>') as clob), 1) from dual ;
DBMS_XMLGEN.CONVERT(XMLSERIALIZE(CONTENTXMLTYPE('<BRAND>BEN&JERRY</BRAND>')A
<brand>Ben & Jerry</brand> -
Inserting a value from page field into an xml file
Hi there,
I have added a field 'Comments' on a create vacancy page.
There are other fields on that page and the values from those fields are getting stored in an xml file.
This xml file is getting stored in TRANSACTION_DOCUMENT column of table HR_API_TRANSACTIONS.
Is it possible to add the value from the field (that I've added on the page) into the same xml file?
If yes, please tell me how
and if no, tell me what should I do to store that value.
Regards,
Gaurav.Hi Gaurav,
You need to check in seeded files for the logic of generation of XML file and setting it in DB column. May be in PLSQL API this code would exist.
Once you get that logic you can append your column value in XML tag (need to create new tag) if you are allowed to modify seeded API. Otherwise use free additional attributes of the table.
Hope I am clear.
Regards,
Mukesh Uchaniya -
Is it possible to create a table from the input of an XML file
Hi,
Must the table exist when I try to parse data from an XML file, or can I tell the parser to create the table if it doesn't exists.
thanks
Rune HaavikRune,
XML Parsing on Java side does not require any table(s) to be present.
If you are talking about PLSQL parsers, then I guess you can catch the exception in your PLSQL block and then create a table. This falls in the SQL realm.
I hope this answers your question. -
Exporting data from database tables to a XML file
Hi,
We want to export data from Oracle database tables to an XML
file. What tool can we use for this purpose, and how do we go
about it ?
Can we extract data only from an Oracle8 database, or can we
extract data from Oracle7.3 databases too ?
Any help in this regard would be appreciated.
Thanks
Dipanjan
nullDipanjan (guest) wrote:
: Hi,
: We want to export data from Oracle database tables to an XML
: file. What tool can we use for this purpose, and how do we go
: about it ?
: Can we extract data only from an Oracle8 database, or can we
: extract data from Oracle7.3 databases too ?
: Any help in this regard would be appreciated.
: Thanks
: Dipanjan
Start by downloading the XML SQL Utility and make sure you have
the approriate JDBC 1.1 drivers installed for your database.
There are samples which will get you going included in the
archive.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null -
Redirecting from a JSP to an XML file
I have an issue that I urgently need to sort out.
I'm running a web application which uses EJB's for the
back-end and JSP's for the front-end.
I have a class that generates an xml file on the system
containing client information. I create a String Object
which holds the filename & retrieve it inside a Servlet to
forward as a HttpServletRequest attribute. Inside the JSP
which retrieves the attribute I then attempt to open the file in a new browser window.
The problem is when it opens, only the xml data is displayed and the file is not rendered using the specified xsl style sheet. My JSP looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<%@ page
language="java"
contentType="text/html; charset=ISO-8859-1"
%>
<%@ page import="za.symbiotics.momentum.forms.helper.*"%>
<%
String file = "../" + request.getAttribute("FILE").toString();
%>
<TITLE>Momentum Simplicity</TITLE>
</HEAD>
<BODY onLoad="forward()">
<%
response.setContentType("text/xml");
response.sendRedirect(file);
%>
</BODY
</HTML>
...part of the Servlet...
FormWriter fw = new FormWriter();
String prefix = getServletContext().getRealPath("/");
String file = fw.getFile()
RoleFileName rf = new RoleFileName()
rf.setFilename(file);
req.setAttribute("FILE", file);
Any advice will be appreciated.u first read the xml file in-memory .Create DOM object .Then apply the XSL on this DOM .
Now take this in-memory DOM and write it on the OutputStream :
ServletOutputStream objOutPutStream = response.getOutputStream();
objOutPutStream.write(objDOM);
objOutPutStream.flush();
objOutPutStream.close();
********************************************************* -
How to convert text values acceses from jsp page into an xml file?
/* this is the jsp page which i want to convert it into an xml file
please help me , i thank in advance*/
<html>
<head>
<title> xml test</title>
</head>
<body>
<form action="testxml2.jsp" method = post>
<ul>
<li>
<ul>NAME:
<br>
<li>First Name:<INPUT NAME="firstName" TYPE=text SIZE=20><br>
<li>Middle Name:<INPUT NAME="middlename" TYPE=text SIZE=20><br>
<li>Last Name:<INPUT NAME="lastname" TYPE=text SIZE=20><br>
<li>t Name:<INPUT NAME="tname" TYPE=text SIZE=20><br>
</ul>
<br>
<ul>Role:</b><p><input type="radio" name="role" value="buyer">Buyer<p>
<input type="radio" name="role" value="seller">Seller<p>
<input type="radio" name="role" value="thirdparty">Third Party<p>
</ul>
<ul>
Qualification:<br>
<li>Highest Degree:<INPUT NAME="degree" TYPE=text SIZE=20><br>
<li>Percentage: <INPUT NAME="percentage" TYPE=text SIZE=20><br>
</ul>
<ul> Adress:
<li> streetName:<INPUT NAME="street" TYPE=text SIZE=20><br>
<li>cityName:<INPUT NAME="city" TYPE=text SIZE=20><br>
<li>StateName:<INPUT NAME="state" TYPE=text SIZE=20><br>
</ul>
</ul>
<b>
<INPUT TYPE=SUBMIT VALUE="ENTER" >
</body>
</html>hi there,
In the MCV there is a part about struts, this is a descent way to do this.
how to do it:
create an actionform containing all the properties of the page.
then when you submit your form use an method in the actionforms (that you have written) that makes sets your data in a xml file.
this works very quickely and i use it in production...
you can choose if you want the xml to generaded hard coded or via a parser.
greetings -
Generate XSD from an not well formed xml File
Hi,
I have following problem:
XML File:
<readme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://localhost:8888/home/XDB/xsd/readme_neu.xsd">
<title lang="de-DE">Preisliste Antriebselektronik </title>
<title lang="en-DE">Preisliste Antriebselektronik </title>
<edition lang="de-DE">date</edition>
<doctype lang="de-DE">Preisliste</doctype>
<projectstartdate lang="de-DE">date</projectstartdate>
<projectenddate lang="de-DE">date</projectenddate>
<projectenddate lang="en-DE">date</projectenddate>
<status lang="de-DE">Druckvorstufe</status>
<doku-key>PA300000</doku-key>
<orderno lang="de-DE">
<actual>11500204</actual>
<previous>11341408</previous>
</orderno>
<orderno lang="lv-LV">
<actual>11500476</actual>
<previous>11341653</previous>
</orderno>
<orderno lang="lt-LT">
<actual>11500484</actual>
<previous>11341661</previous>
</orderno>
<orderno lang="nl-BE">
<actual>11500492</actual>
<previous>11341688</previous>
</orderno>
</readme>
The Tags title and projectenddate makes the problem. I'd like to make an Objekt TITEL_OBJECT and PROJECTEND_OBJECT to differ the tags, but my problem is:
xdb_titel_type is NOT FINAL
Name Null? Typ
SYS_XDBPD$ XDB$RAW_LIST_T
SPRACHE VARCHAR2(4000 CHAR)
that I lose the content the tags.
What can i do?? is there any possible solution or isn't it possible
thx PHIL
I have solved the problem
Message was edited by:
user534856Hi,
I have following problem:
XML File:
<readme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://localhost:8888/home/XDB/xsd/readme_neu.xsd">
<title lang="de-DE">Preisliste Antriebselektronik </title>
<title lang="en-DE">Preisliste Antriebselektronik </title>
<edition lang="de-DE">date</edition>
<doctype lang="de-DE">Preisliste</doctype>
<projectstartdate lang="de-DE">date</projectstartdate>
<projectenddate lang="de-DE">date</projectenddate>
<projectenddate lang="en-DE">date</projectenddate>
<status lang="de-DE">Druckvorstufe</status>
<doku-key>PA300000</doku-key>
<orderno lang="de-DE">
<actual>11500204</actual>
<previous>11341408</previous>
</orderno>
<orderno lang="lv-LV">
<actual>11500476</actual>
<previous>11341653</previous>
</orderno>
<orderno lang="lt-LT">
<actual>11500484</actual>
<previous>11341661</previous>
</orderno>
<orderno lang="nl-BE">
<actual>11500492</actual>
<previous>11341688</previous>
</orderno>
</readme>
The Tags title and projectenddate makes the problem. I'd like to make an Objekt TITEL_OBJECT and PROJECTEND_OBJECT to differ the tags, but my problem is:
xdb_titel_type is NOT FINAL
Name Null? Typ
SYS_XDBPD$ XDB$RAW_LIST_T
SPRACHE VARCHAR2(4000 CHAR)
that I lose the content the tags.
What can i do?? is there any possible solution or isn't it possible
thx PHIL
I have solved the problem
Message was edited by:
user534856 -
Problem retrieving Data from a CDATA-Section using XMLDOM
Hello,
Ware: Oracle 8.1.7.4 64bit, XDK for PL/SQL Version 9.2.0.3, Solaris8 64bit
I can't retrieve Data from the CDATA-Section of an XML-String, neither with
getData(DOMCharacterData) or substringData. Also getLength fails. I get always
the following error:
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception: java.lang.ClassCastException
ORA-06512: at "XML_SCHEMA.XMLCHARDATACOVER", line 0
ORA-06512: at "XML_SCHEMA.XMLDOM", line 853
ORA-06512: at "SCHWABE.XML_TEST", line 47
ORA-06512: at line 1
I can successfully cast the DOMNode to a CharacterData with makeCharacterData
and check with isNull (DOMCharacterData) (returns FALSE).
My Testcase:
1) A Function which build a XML-Document:
CREATE OR REPLACE FUNCTION XML_ResponseCalc RETURN VARCHAR2 IS
doc VARCHAR2(32767);
BEGIN
doc :=
'<?xml version="1.0" encoding="UTF-8"?>
<RSDecEng>
<Version>1.00</Version>
<ResponseCalc>
<ID>00000000000000000014</ID>
<Burst>
<Definition>
<Count>1</Count>
<ID>
<Start>1</Start>
<Length>4</Length>
</ID>
<Var>
<Name>Risiko_1</Name>
<Start>5</Start>
<Length>5</Length>
</Var>
</Definition>
<Data>
<Length>9</Length>
<Count>5</Count>
<![CDATA[
1 0.001
2 0.002
3 0.003
4 0.004
5 0.005
6 0.006
7 0.007
8 0.008
9 0.009
10 0.010
]]>
</Data>
</Burst>
</ResponseCalc>
</RSDecEng>
2) The Procedure which parses the XML-Document (no Exception-Handling):
CREATE OR REPLACE PROCEDURE XML_TEST IS
Parser XML_SCHEMA.XMLParser.Parser;
DOMDocument XML_SCHEMA.XMLDOM.DOMDocument;
DOMNode XML_SCHEMA.XMLDOM.DOMNode;
DOMNodeItem XML_SCHEMA.XMLDOM.DOMNode;
DOMNodeList XML_SCHEMA.XMLDOM.DOMNodeList;
DOMCharacterData XML_SCHEMA.XMLDOM.DOMCharacterData;
TheDocument CLOB;
ID VARCHAR2(100);
Data VARCHAR2(200);
BEGIN
-- LOB
DBMS_LOB.CREATETEMPORARY(TheDocument, TRUE);
DBMS_LOB.WRITEAPPEND(TheDocument, LENGTH(XML_ResponseCalc), XML_ResponseCalc);
-- Parse
Parser := XML_SCHEMA.XMLParser.NewParser;
XML_SCHEMA.XMLParser.ParseCLOB(Parser, TheDocument);
DOMDocument := XML_SCHEMA.XMLParser.GetDocument(Parser);
XML_SCHEMA.XMLParser.FreeParser(Parser);
-- Node
DOMNode := XML_SCHEMA.XMLDOM.MakeNode(DOMDocument);
-- Get ID
DOMNodeList := XML_SCHEMA.XSLProcessor.SelectNodes
(DOMNode,'/RSDecEng/ResponseCalc/ID/text()');
IF XML_SCHEMA.XMLDOM.GetLength(DOMNodeList) > 0 THEN
DOMNodeItem := XML_SCHEMA.XMLDOM.Item(DOMNodeList, 0);
XML_SCHEMA.XMLDOM.WriteToBuffer(DOMNodeItem, ID);
SYS.DBMS_OUTPUT.PUT_LINE ('ID: '||ID);
END IF;
-- Get CDATA
DOMCharacterData := XML_SCHEMA.XMLDOM.MakeCharacterData(DomNode); -- <-- ok here...
IF NOT XML_SCHEMA.XMLDOM.isNull (DOMCharacterData) THEN -- <-- ...and here
Data := XML_SCHEMA.XMLDOM.GETDATA(DOMCharacterData); -- <-- ...but here Exception raise
END IF;
END;
I hope you can help me.
Thank you in advance
Markus SchwabeYou need to notice the definitions for makecharacterdata:
FUNCTION makeCharacterData(n DOMNode) RETURN DOMCharacterData;
PURPOSE
Casts given DOMNode to a DOMCharacterData
It only do the casting. -
Reading an XML file from package .....
I m trying to read an xml file from a package. The XML file is located on desktop (not on unix system). if i mention the path of the file in a package, is it sufficient ???. OR do i need to CREATE DIRECTORY in oracle and mention the file path in this directory ???
If not any suggestion or advice is great ???Depends upon the version of Oracle being used. Going from memory, I think it started with 10g that you had to CREATE DIRECTORY and then use that object in references to disk. It could have been 9i as I skipped that version. If you look at the documentation for whatever provided procedure you are calling it will tell you what it expects.
As the code runs on the server the DB resides on, the data file will need to be network accessible from there in order for your code to read the file. -
Error while downloading data from internal table into XML file
hi all,
i developed a program to download data from into internal table to xml file like this.
tables: mara.
parameters: p_matnr like mara-matnr.
data: begin of itab_mara occurs 0,
matnr like mara-matnr,
ernam like mara-ernam,
aenam like mara-aenam,
vpsta like mara-vpsta,
end of itab_mara.
data: lv_field_seperator type c, " value 'X',
lv_xml_doc_name(30) type c, " string value my xml file,
lv_result type i.
lv_field_seperator = 'x'.
lv_xml_doc_name = 'my xml file'.
types: begin of truxs_xml_line,
data(256) type x,
end of truxs_xml_line.
types:truxs_xml_table type table of truxs_xml_line.
data:lv_tab_converted_data type truxs_xml_line,
lt_tab_converted_data type truxs_xml_table.
data: lv_xml_file type rlgrap-filename value 'c:\simp.xml'.
select matnr ernam aenam vpsta from mara into table itab_mara up to 5
rows where matnr = p_matnr.
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = lv_field_seperator
I_LINE_HEADER =
I_FILENAME =
I_APPL_KEEP = ' '
I_XML_DOC_NAME = lv_xml_doc_name
IMPORTING
PE_BIN_FILESIZE = lv_result
TABLES
I_TAB_SAP_DATA = itab_mara
CHANGING
I_TAB_CONVERTED_DATA = lt_tab_converted_data
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
open dataset lv_xml_file for output in binary mode.
loop at lt_tab_converted_data into lv_tab_converted_data.
transfer lv_tab_converted_data to lv_xml_file.
endloop.
close dataset lv_xml_file.
this program is syntactically correct and getting executed, but when i open the target xml file it is showing the following error.
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource 'file:///C:/simp.xml'.
will anyone show me the possible solution to rectify this error
thanks and regards,
anil.Hi,
Here is a small sample program to convert data in an internal table into XML format and display it.
DATA: itab TYPE TABLE OF spfli,
l_xml TYPE REF TO cl_xml_document.
* Read data into a ITAB
SELECT * FROM spfli INTO TABLE itab.
* Create the XML Object
CREATE OBJECT l_xml.
* Convert data in ITAB to XML
CALL METHOD l_xml->create_with_data( name = 'Test1'
dataobject = t_goal[] ).
* Display XML Document
CALL METHOD l_xml->display.
Here are some other sample SAP programs to handle XML in ABAP:
BCCIIXMLT1, BCCIIXMLT2, and BCCIIXMLT3.
Hope this helps,
Sumant. -
Reading an XML file from a package .....
I m trying to read an xml file from a package. The XML file is located on desktop (not on unix system). if i mention the path of the file in a package, is it sufficient ???. OR do i need to CREATE DIRECTORY in oracle and mention the file path in this directory ???
I have granted CREATE directory permissions...
If not any suggestion or advice is great ???
Thank you!!BANNER
1 Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
2 PL/SQL Release 11.1.0.6.0 - Production
3 CORE 11.1.0.6.0 Production
4 TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
5 NLSRTL Version 11.1.0.6.0 - Production
Thank you !!!
Maybe you are looking for
-
Problem with output ype In SMART FORMS
HI, I am working smartforms. I have taken a standard copy of existing smartform and made necessary modifications. This FORM is INVOICE DOCUMENT. I Configured this using NACE Transaction Code . While I am creating Billing Document in VF01. I am not un
-
Hi, I am trying to create a DB trigger on AR_RECEIVABLE_APPLICATIONS_ALL table to update the custom table when the above table column attribute1 is updated through the form DFF. But I am getting the following error when I save the changes. FRM-40735:
-
I am running Dreamweaver CS3. I have Coldfusion developer edition installed locally. I also have a test server with full coldfusion. I have defined by database sources in both places. However, in Dreamweaver they do not show up. In the database windo
-
How do i change the name of the file from my directory using java code? i want the code to change the name of my files to 1, 2, 3, and so on... Thankyou Hemant
-
Partition of hard drive to run 10.7 on one and 10.10 on the other
Anyone know if I can partition my hard drive on my MacBook to run OS 10.7 on one and OS 10.10 on the other? The reason is that I have business programs that will not run on the latest version without an expensive upgrade. And one program is not writt