Generate XML File from table
How to generate XML file from a table without using UTL_FILE that too in local machine...
You downloaded the wrong XML Parser!
XSQL requires Java Parser. Well, there's a copy included with the XSQL package so you actually don't need to do another download.
You really don't need XSQL if you just want a XML file from DB, you just needed a XML SQL Utility. Download that and run the samples.
Similar Messages
-
Generating XML file from WORD file
hello
Everyboby.
I am trying to generate xml file from a word file.
but i am stucked with how to do it? any kind of help will be useful.
i think for doing this work i have to develop XSD file, because when i am creating the xml file, the hidden space within the word file is not catched.
please help me out.
waiting for reply
thanks
milindhello
after searching on the net i came to know that org.apache.poi.hwpf.* is used for reading word file and its contents. for converting it to xml i have to use org.exolab.castor.xml.*
now my problem is that POI is in its early beta version and there is no help or any sample examples for understanding the api.
so if you have any idea regarding it, please write to me.
waiting for your reply.
thanks
Milind -
Hi I need this asap... "Java code to generate XML File from XML Schema"
Hi all....
I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
Thankz in advance...
PS: I already posted in the afternoon... this is the second posting.take look at :
http://sourceforge.net/projects/jaxme/
this might help... -
Java code to generate XML File from XML Schema
Hi I need this asap... "Java code to generate XML File from XML Schema i.e XML Schema Definition, XSD file".
Thankz in advance...JAXB has been available as an early release download for some time. There are also XML Binding packages available from Borland (JBuilder) and Castor. These tools create Java classes from a source document, xml,dtd etc. You can use these classes to marshal-unmarshal XML documents.
Dave -
Generate XML file from Billing Output
Hello,
We have a business requirement to generate XML file from billing output and the same needs to send to external system for document printing. In this regard, could you please guide the steps to configure or share the document on how the system to be configured to support the XML file generation from billing document.
Anticipating a positive reply
Thanks in advance
Best Regards,
Gouthamanother option is to configure an outbound IDOC and set the port for this IDOC to generate an XML file.
here again there will be IDOC control record in the first section of the IDOC XML generated.'
rgds -
How to generate XML file from SQL file !
I am new to XML publisher. I known one way to generate XML file is register one report file in concurrent manager.
But I want to generate XML file from sql file.
Could someone show me how to code in sql file, how to register is in concurrent manager.
Thanks !Hi
Phew ... not sure we have the space here. So I can point you in the right direction:
1. XML data generation - there are two packages in the db you can use with a plsql procedure, XMLGEN and SQL XML. You can also use java APIs too. Try checking the db documentation and search for the above methods.
2. Registering the report - the system administrators guide will provide this info. Hooking the program up with XMLP is covered here - http://www.oracle.com/technology/products/applications/publishing/resource/CM%20Whitepaper5.0.pdf
Regards, Tim -
Generating xml file from database table
Could anyone please explain how to generate a xml file from a database table.examples will be highly appreciated.
thanks in advanceSee the release notes for our XSQL Pages component of the Java XDK for a tutorial. There are also lots of examples in Building Oracle XML Applications.
You use the XML SQL Utility component to accomplish the task. It's part of our Java XDK that you can download from http://otn.oracle.com/tech/xml -
Generate XML file from an Oracle Database Table
Hello All,
I want to generate a xml file from an Oracle Database table which contains a blob column.
Can somebody give pointers on this please.
Thanks in advance
SulakshanaUse the DBMS_XMLGEN package.
-
Generate XML file from DB table
Hi all,
I am trying to retrieve data from a DB table and generate an XML file.
I am using Oracle8i and IIS 4.0. I have downloaded XML parser for PL/SQL and XSQL Servlet. Also I have Jrun to enable IIS to process Jservlets
Here are my questions,
1. Do I need any other software ?
Also do I need both XML parser for PL/SQL and XSQL Servlet ??
2. What is the next step I should do ?
Please help me. Thanks in advance.
VikkiYou downloaded the wrong XML Parser!
XSQL requires Java Parser. Well, there's a copy included with the XSQL package so you actually don't need to do another download.
You really don't need XSQL if you just want a XML file from DB, you just needed a XML SQL Utility. Download that and run the samples. -
Create XML file from table data
Dear All,
with dataservice 4.0, I want to create an XML file from a table data.
Table have a single column but more record, for example:
0001000488;100;EUR;
0001000489;200;EUR;
0001000450;300;EUR;
My desired XML output:
<Data>
0001000488;100;GBP;
0001000489;200;EUR;
0001000450;300;EUR;
</Data>
I try with a sample query but the sistem write only the last record in XML file:
<Data>
0001000450;300;EUR;
</Data>
Can everyone help me?
Thank in advance.
SimoneHello
That is a very simple (also odd) XML document structure, and as such doesn't require use of the XML target. It can be easily acheived by writing a normal file with a header and footer, which is acheived using a row_generation and a query to generate the hard coded open and close tags.
Michael -
Best Practices:: How to generate XML file from a ResultSet
Hi all,
Could someone please suggest the best practices of how to generate an XML file from a resultset? I am developing a web application in Java with Oracle database and one of my tasks is to generate an XML file when the user, for example, click a "download as XML" button on the JSP. The application is basically like an Order with line items. I am using Struts and my first thought has been to have an action class which will extend struts's DownloadAction and through StAX's Iterator API to create an XML file. I intend to have a POJO which will have properties of all columns of my order and line items tables so that for each order I get all line items and:
1. Write order details then
2. Through an iterator write line items of that order to an XML file.
I will greatly appreciate for comments or suggestions on the best way to do this through any pointers on the Web.
alexUse a OracleWebRowSet in which an XML representation of the result set may be obtained.
http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/oracle10g/webrowset/Readme.html
http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jcrowset.htm -
Error while generating XML file from rdf report.
Hi All,
we are having a rdf report that displays images retrieved from data base. I need to convert this report to xml report(using rtf template).
when i tried to run the report after changing the output of the concurrent program to "XML", i am getting the below error.
REP-1295: Data format of column 'PK1_VALUE' is unsupported.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-1295: Data format of column 'PK1_VALUE' is unsupported.
images are stored in BLOB type columns.
Can anyone help me on this..
thanks
gtungalaHi Hussein,
Thank you for the reply.. i was sure that i will get correct response with in a day..
you people made this as one of the best technical forums..no doubt in that..
need some more help from you...!
The metalink docs say that it is not possible to generate xml file as the image is BLOB.
Can you please tell me any solution for developing xml template(rtf) which can display images that are stored in data base BLOB columns. Even PL/SQL script will do.. I have tried with changing the BLOB to CLOB in rdf query(by calling a function that converts BLOB to CLOB). it didnt help.
thanks in advance..
gtungala -
Generate XML file from RFC using Web Services
Hi,
I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.
I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.
Any FM available?
Thanks,
Ram Sanjeevwhich version of WAS you are on .
if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
lower version of WAS use class cl_http_client.
if this case you have to manually build the soap message.
/people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
Regards
Raja -
How to Generate XML File from Java Code.
I want to generate the xml file from the java code.
Could you plz suggest any webSite address with example?Here is the code
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
public class CreateXML {
private DocumentBuilderFactory factory = null;
private DocumentBuilder builder = null;
private Document document = null;
public CreateXML() {
try {
factory = DocumentBuilderFactory.newInstance();
builder = factory.newDocumentBuilder();
document = builder.newDocument();
} catch (FactoryConfigurationError e) {
e.printStackTrace();
} catch (ParserConfigurationException e) {
e.printStackTrace();
/** Creates the document for xml. */
public Document createDocument(){
try{
Element root = document.createElement("Root");
Element child = document.createElement("child");
root.appendChild(child);
document.appendChild(root);
}catch(RuntimeException e){
e.printStackTrace();
return document;
/** Saves the document as xml. */
public void saveDocument(Document document){
try{
TransformerFactory transFactory = TransformerFactory.newInstance();
Transformer transformer = transFactory.newTransformer();
DOMSource source = new DOMSource(document);
StreamResult stream = new StreamResult(new File("sample.xml"));
transformer.transform(source, stream);
System.out.println("XML Created !!");
}catch(TransformerConfigurationException e){
e.printStackTrace();
} catch (TransformerException e) {
e.printStackTrace();
public static void main(String args[]){
CreateXML createXML = new CreateXML();
Document document = createXML.createDocument();
createXML.saveDocument(document);
} -
Hi
I want to generate an XML file from APEX when a click button like example in bottom
and All bold number I want receive them as parameters.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE labels SYSTEM "label.dtd">
<labels _FORMAT="1" >
<label _QUANTITY="*5*" >
<variable name = "OLDPRICE">*12.99*</variable>
<variable name = "NEWPRICE">*9.99*</variable>
<variable name = "SKU">*12345*</variable>
<variable name = "COLOR">*010*</variable>
</label>
</labels>
thanks
Jade
Edited by: Jade04 on May 21, 2009 12:21 PMHi Varad,
thank you for your fast answers
plaise see the bold code for save my XML file in the server, Is it correct ?
declare
v_file_name VARCHAR2 (2000) := 'Xmlfile.xml';
FILE1 UTL_FILE.FILE_TYPE;
v_dir_1 varchar2(100) := '/prod/smb/ms/dev';
L_OUTPUT_LINE VARCHAR2(400);
begin
OWA_UTIL.mime_header ('application/txt', FALSE);
htp.p('Content-Disposition:attachment;filename="'|| v_file_name|| '"');
OWA_UTIL.http_header_close;
htp.p('
<?xml version="1.0" standalone="no"?>
<!DOCTYPE labels SYSTEM "label.dtd">
<labels FORMAT="' || :p1p1 || '" >
<label _QUANTITY="'|| :p2_p2 || '" >
<variable name = "OLDPRICE">*12.99*</variable>
<variable name = "NEWPRICE">*9.99*</variable>
<variable name = "SKU">*12345*</variable>
<variable name = "COLOR">*010*</variable>
</label>
</labels>
*FILE1 := UTL_FILE.FOPEN(I don't now then file_location,Xmlfile.xml,'r');*
*LOOP*
*BEGIN*
*UTL_FILE.GET_LINE(FILE1,L_INPUT_LINE);*
*IF L_INPUT_LINE = null THEN*
*EXIT;*
*ELSE*
*UTL_FILE.fopen(<v_dir_1, Xmlfile_cop.xml, 'W')*
*END IF;*
*EXCEPTION*
*WHEN no_data_found THEN*
*exit;*
*END;*
*END LOOP*
*UTL_FILE.FCLOSE (FILE1);*
apex_application.g_unrecoverable_error:=true;
exception when others then
null;
end;
thanks.
Jade
Maybe you are looking for
-
Problem Performing 1:N multi-mapping in ccBPM
Hi, I am trying to work out this simple scenario with the help of BPM. 1. The BPM is receiving a Collection of Purchase Orders(say PO_Collection consisting of N PO). 2. The Message is split by Transformation state(1:N) to N POs.(PO is Multi
-
Are tables becoming obsolete?
Newbie alert!!! Why am I seeing errors now? About a month ago when I checked the test site in all the browsers everything was fine... now I've got all sorts of errors everywhere. Such as: The tag: "table" doesn't have an attribute: "height" in curren
-
Email with embedded applet for offline viewing
Can you embed an applet in an email message so that it can be viewed offline by the recipient? If yes, how?
-
Why does Firefox not open the link in an email message?
Since upgrading to 3.6.10 (at least I think since then) Firefox no longer opens the urls in email messages when I click on them. Firefox becomes active, but then nothing happens. How can I rectify this? I use mail.app, on Mac OS 10.6.5. Thanks, Adria
-
Writing back to a database using adobe flex
According to the demo on [http://www.businessobjects.com/global/flash/product/catalog/crystalreports/demo_operational_reporting/operationalreporting_viewlet_swf.html|http://www.businessobjects.com/global/flash/product/catalog/crystalreports/demo_oper