The ADF table data to Excel or PDF

Hi all
I want to export some ADF data to Excel or PDF. I used the export action listener collection. It allows only to export data from table to Excel. Its ok, but in some tables I have columns that contain data such as 0123 (i.e. with leading zeros.). In this case, when I export to excel, these zeros are not displayed in excel. Is there a way I can avoid this problem. If this is not the case, is it possible to get the data in table adf to PDF?

Thank you very much.

Same problem in mycase (excel). I managed to solve this nonprintable character adding at the and of the outputText value.
Here is my code:


  

{code}

My non-printing character... hold down alt key and on numeric keyboard part enter 255.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

Tags: Java

Similar Questions

  • The ADF Table data validation and highlighting

    I have an ADF table, supported by a VO. Gets the data loaded from a spreadsheet file. There are some required columns marked with the required attribute. the columns do not get highlighted when loaded data are empty. How can I get auto table validated during the loading of data and WITHOUT a commit / submit to the rear end table?

    My requirement is.

    1 load the data into the table.

    2. a way to highlight the rows or columns that have no values (how?) I tried the style inline for column as #{row.bindings.invamt == null?' background-color: Red;': ' background-color: White;'}, but no luck.

    3. validate data from db.

    User, tell us your version of jdev, please!

    If the table is editable, you can add this to the inputText of the column

    contentStyle = ' #{empty row.bindings.PhoneNumber.inputValue?» "{- color: red;':"} ".

    For the PhoneNumber column. If the table is read only the cellular connection is

    973564 wrote:

    I have an ADF table, supported by a VO. Gets the data loaded from a spreadsheet file. There are some required columns marked with the required attribute. the columns do not get highlighted when loaded data are empty. How can I get auto table validated during the loading of data and WITHOUT a commit / submit to the rear end table?

    My requirement is.

    1 load the data into the table.

    2. a way to highlight the rows or columns that have no values (how?) I tried the style inline for column as #{row.bindings.invamt == null?' background-color: Red;': ' background-color: White;'}, but no luck.

    3. validate data from db.

    contentStyle = ' #{blank line.» Phone number? "{- color: red;':"} ".

    So I guess that the connection you are using is not correct.

    Timo

  • Line in the ADF Table color

    Is it possible to alternate the color of the lines of the ADF table? Do I have to use a skin?

    Code example would be much appreciated.

    Thank you, Mitch

    Read about the line of the bands here:
    http://download.Oracle.com/docs/CD/E12839_01/apirefs.1111/e12419/tagdoc/af_table.html
    Basically, you can use the rowBandingInterval attribute.

  • The center of the ADF table column data

    I use JDeveloper 11.1.1.6

    I would like to be able to focus some of the attributes stored for some columns in my table of the ADF. Here are 2 of the columns in my table ADF I tried to center data. For some reason, the data remain justified left. In my skin file I am centering the header values for all columns in all tables. I don't want to do that, but with the row data. For row data, I want to selectively choose the columns that are left centered or justified. Do you have any ideas on what I'm missing.



    < af:table value = "#{bindings." Data1.collectionModel}.
    var = "row".
    lines = ' #{bindings. " Data1.rangeSize}.
    emptyText = "#{bindings." Data1.viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." Data1.rangeSize}.
    rowBandingInterval = '1 '.
    Binding = "#{backingBeanScope.backing_ui_pages_DataDispatch_Processing_update." Table"}
    ID = "myTable" columnStretching = "last".
    rowSelection = "single" displayRow = "selected".
    selectedRowKeys = ' #{bindings. " Data1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." Data1.collectionModel.makeCurrent} ">"


    ...........


    < af:column sortProperty = "MyId" sortable = "false".
    headerText = "#{bindings." Data1.hints.MyID.label}.
    ID = "c1" >
    < af:outputText value = "#{rank." MyId}"id ="ot10.
    inlineStyle = "" text-align: center; "/ >"
    < / af:column >
    < af:column headerText = "#{bindings." Data1.hints.size.label}.
    ID = 'c4' width = "75" >
    < af:selectOneChoice value = "#{row.bindings.Size.inputValue} '"
    label = "#{row." Bindings.Size.label}.
    required = "#{bindings." Data1.hints.size.mandatory}.
    shortDesc = "#{bindings." Data1.hints.size.ToolTip}.
    ID = "soc3" readOnly = 'true '.
    inlineStyle = "" text-align: center; ">"
    < f: selectItems value = "#{row.bindings.Size.items} '"
    ID = "si3" / >
    < / af:selectOneChoice >
    < / af:column >


    ...........


    < / af:table >

    I'm sorry. The attribute align = 'center' is at the level of the spine.

    Try this:

    Try this:


    var = "row".
    lines = ' #{bindings. " Data1.rangeSize}.
    emptyText = "#{bindings." Data1.viewable? "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings." Data1.rangeSize}.
    rowBandingInterval = '1 '.
    Binding = "#{backingBeanScope.backing_ui_pages_DataDispatch_Processing_update." Table"}
    ID = "myTable" columnStretching = "last".
    rowSelection = "single" displayRow = "selected".
    selectedRowKeys = ' #{bindings. " Data1.collectionModel.selectedRow}.
    selectionListener = "#{bindings." Data1.collectionModel.makeCurrent}">

    ...........


    headerText = "#{bindings." Data1.hints.MyID.label}.
    ID = "c1" align = "center" >



    ID = 'c4' width = "75" align = "center" >

    label = "#{row." Bindings.Size.label}.
    required = "#{bindings." Data1.hints.size.mandatory}.
    shortDesc = "#{bindings." Data1.hints.size.ToolTip}.
    ID = "soc3" readOnly = 'true '.
    >

    ID = "si3" / >

    ...........

    Thank you
    Nini

  • How to get the selected row in a programmatic table of the ADF (table generated from a bean)

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    How to get the selected line in a programmatic (using a SortableModel custom not a display object) ADF table (generated from a bean)?


    We are trying to get the selected row in a bean of a programmatic ADF table to retrieve data based on the selected line.


    Any idea?

    Well, you can use selectionListener to set the selected line to a variable of bean (but this bean must be in extended view or some superiors)

    Something like this: http://www.awasthiashish.com/2015/07/get-selected-row-singlemultiple-from.html

    Dario

  • The ADF table: filter on columns of stamp with a specific format in the indications of the user interface

    Hi all

    I have problem when filtering on af timestamp column: table.

    I have a table containing historical information (created_on and modified_on), it is mapped to an entity:

    Type = "Oracle.jbo.domain.date"

    ColumnType = "DATE".

    I've seen object mapped from this entity.

    I want to display created_on and modified_on with timestamp (hour and minute), so I add the tips of the user interface for these 2 columns:

    -Type format: Date Simple

    -Size: MM/DD/YYYY HH: mm

    I create a table based on this point of view. The table is filterable.

    The column like this:

    < af:column sortProperty = "#{bindings." View.hints.CreatedOn.name}"blockable = 'true '.

    sortable = "true" headerText = "#{bindings." View.hints.CreatedOn.label}"id ="c6">

    < f: facet = name 'filter' >

    < af:inputDate value = "#{bindings." ViewQuery.queryDescriptor.filterConjunctionCriterion.criterionMap.CreatedOn.value}.

    ID = "id2" >

    < af:convertDateTime pattern = "#{bindings." View.hints.CreatedOn.format}"/ >

    < / af:inputDate >

    < / f: facet >

    < af:outputText value = "#{rank." CreatedOn}.

    shortDesc = "#{bindings." VIew.hints.CreatedOn.tooltip}"id ="ot6">

    < af:convertDateTime pattern = "#{bindings." View.hints.CreatedOn.format} ">"

    < / af:outputText >

    < / af:column >

    When I filter on 2 columns (created_on, modified_on) I got an error: " java.lang.IllegalArgumentException: ADFv: could not convert the instance: 30/07/2014 09:51 type: class java.lang.String in class of type null oracle.jbo.domain.Date."

    Do you have an idea for me?

    Thanks in advance.

    Here is the stacktrace:

    Caused by: java.lang.IllegalArgumentException: ADFv: could not convert the instance: 30/07/2014 09:51 type: class java.lang.String in oracle.jbo.domain.Date of type null class.

    at oracle.adfinternal.view.faces.convert.DomainConverter._throw(DomainConverter.java:155)

    at oracle.adfinternal.view.faces.convert.DomainConverter.convert(DomainConverter.java:120)

    to oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$ AdfFilterAttributeCriterion.getValue (FacesCtrlSearchBinding.java:5127)

    at sun.reflect.GeneratedMethodAccessor448.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:601)

    at javax.el.BeanELResolver.getValue(BeanELResolver.java:305)

    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)

    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)

    at com.sun.el.parser.AstValue.getValue(AstValue.java:138)

    at com.sun.el.parser.AstValue.getValue(AstValue.java:183)

    at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)

    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.getProperty(FacesBeanImpl.java:73)

    at oracle.adfinternal.view.faces.renderkit.rich.ValueRenderer.getValue(ValueRenderer.java:195)

    at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputBaseRenderer.renderContentStyleAttributes(SimpleInputBaseRenderer.java:524)

    at oracle.adfinternal.view.faces.renderkit.rich.FormInputRenderer.renderAllContentAttributes(FormInputRenderer.java:480)

    at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputBaseRenderer.renderAllContentAttributes(SimpleInputBaseRenderer.java:230)

    at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputDateRenderer.renderAllContentAttributes(SimpleInputDateRenderer.java:712)

    at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputDateRenderer.renderElementContent(SimpleInputDateRenderer.java:592)

    at oracle.adfinternal.view.faces.renderkit.rich.FormInputRenderer.encodeAllAsElement(FormInputRenderer.java:169)

    at oracle.adfinternal.view.faces.renderkit.rich.FormElementRenderer.encodeAll(FormElementRenderer.java:165)

    at oracle.adf.view.rich.render.RichRenderer.delegateRenderer(RichRenderer.java:1828)

    at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.renderFieldCellContents(LabeledInputRenderer.java:244)

    at oracle.adfinternal.view.faces.renderkit.rich.LabelLayoutRenderer.encodeAll(LabelLayoutRenderer.java:254)

    at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.encodeAll(LabeledInputRenderer.java:231)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)

    to oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer$ UIXColumnFilterWrapper._encodeChild (BaseColumnRenderer.java:2486)

    to oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer$ UIXColumnFilterWrapper.encodeChildren (BaseColumnRenderer.java:2454)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)

    at oracle.adf.view.rich.render.RichRenderer.encodeChildInContext(RichRenderer.java:3251)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer._renderOrVisitFilterFacet(BaseColumnRenderer.java:1938)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.renderColumnFilterCell(BaseColumnRenderer.java:1324)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseColumnRenderer.encodeAll(BaseColumnRenderer.java:168)

    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)

    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)

    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)

    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)

    to oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.access$ 2900 (BaseTableRenderer.java:78)

    to oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer$ FlattenedColumnEncoder.processComponent (BaseTableRenderer.java:3155)

    to oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer$ FlattenedColumnEncoder.processComponent (BaseTableRenderer.java:3129)

    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)

    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)

    at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:291)

    at oracle.adfinternal.view.faces.renderkit.rich.table.BaseTableRenderer.encodeFlattenedColumn(BaseTableRenderer.java:2928)

    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderFilterRow(TableRenderer.java:2508)

    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderColumnHeaderTable(TableRenderer.java:2113)

    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer._renderColumnHeader(TableRenderer.java:1899)

    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:727)

    Hello

    This is a bug in the ADF (Bug 17380741 not public) and it resolved in JDev 12.1.3.

    Kind regards

    Sébastien

  • Import data from Excel in PDF with Acrobat Pro XI - is it possible? How?

    I need to be able to create a pdf file where certain information can be merged to an Excel spreadsheet in the pdf file so that our land use specialists can use tablets to fill the field. I also need to be able to create a field where the user can join or import a jpg file. Is it possible to do this with Acrobat Pro XI? Another program is necessary. I need to know the answers to my questions by January 28, 2016.

    Hi shannonr80675036,

    Yes, but you there are two things you need to do in Excel for this to work:

    Columns must be named the same as the field names in the PDF form. The names that you use in your PDF form, or you must change the names of fields in the PDF form so that they correspond to the column names in Excel, you can either match. In this example, I took the first approach and used the field names as my column headings:

    When you export your data to Excel file, you must select the "Tab Delimited Text" format. It is one of the export options in Excel (and other spread sheet applications) which is available when you select file > save as:

    Once you have your tabs-delimited text file, open your PDF form, and then select Tools > forms > more form Options and click Import:

    In the file dialog box, select this option to import a text file, browse to your exported text file and select it. In the next screen, you can then choose what import record, you can import only one record at a time:

    This will complete the PDF form with the selected values:

    That, for each record you have in your Excel file and save the PDF file under a new name.

    Kind regards

    Nicos

  • Form of the ADF for data structure with several child records

    Jdev version: 11.1.1.2.0

    I have a data structure with a one-to-many parent-child relationship. I give an example of the data structure.

    Employee table:
    ----------------------
    EmpId
    EmpName
    Salary

    Table Historiqueemploye:
    -------------------------------
    EmpId
    Previous_Employer
    From_Date
    To_Date


    In the ADF form for entering data for a new employee, I want to give a layout (say, a button "Add row") for the history of the employee's employment. How can we succeed in ADF?

    I'm new to ADF. Would be grateful if someone can help me with detailed steps or a link showing such a demonstration.

    Thanks in advance.

    Hello

    If you exposed a View for the Historiqueemploye table object, then simply drag this point of view as a form and then drag and drop the create operation (within the structure of the View object in the data control palette) as a button for the new line is created. If you do not always display the historical, add it to an af:popup and start button context menu create or hide the af: panelFormLayt that a form is added by default.

    Frank

  • problem in the form of master-detail when you use the ADF table for detail

    Hello

    jdev version - 11.1.2.1.0


    I create master shape detail using datacontrol drag as ADF master shape secondary Table.


    Now when I create a new line in the detail table using the key CreateInsert a new empty row created on top of the secondary table.

    and other show line that the previous record data based on the master.

    problem is I want to when I click on the createInsert button all the line of the secondary table must be empty and what line to fill two or three user then validate.



    Thanks in advance

    Hello

    If a secondary table has data, then createInsert adds to them. If you want to hide the existing lines, create a new instance of the View object and set the option "extract database" to "No. Rows. Use an af:switcher to change the specified table when the user clicks the createInsert button. There is some coding needed to have this use case in the ADF, but its essentially declarative. Bottom line, is that there is no option automated other than to create new lines in a separate page or dialog box if you are bothered by existing lines

    Frank

  • Speed up the transfer of data from Excel

    Hey!

    In my VI, I need the contents of 3 Excel files. The VI then takes in the filter criteria and uses them to filter all the data and produce graphs. Problem is that all 3 Excel files are more than 8000 lines deep and wide of 40 columns. She takes super long to get the data from one of these worksheets, nevermind 3.

    IM only starting this project, so I wanted to find the best way to address the issue.

    Is it possible to quickly transfer all the data from Excel to LabVIEW?

    If I read once and then writes it to a binary file for quick access, which would be better?

    I'm under that LabVIEW 2009 on Windows XP with report generation tool installed too.

    Rkll!

    Then this is the case you have seen either

    This

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/2231

    or

    This

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/3409

    ?

  • All-in-one HP 1536dnf: cannot scan from the ADF and glass to a single PDF file

    Hello

    There is a user who needs to scan some papers, but he wanted to do the following:

    -scan of the papers of the ADF

    and

    -scan of glass papers

    and he wanted to merge all this into a single PDF file.

    The announcement of the user he could do before, we implemented a new computer.

    On my side, I did the installation of the drivers and as the default scanning software and indeed the scan works, but once you star scanning from ADF he will not identify any which paper on the glass and displays the message "no book on ADF.

    And when you start scanning from glass it will identify ADF even if there are some papers. Instead, it will scan the same page, if she stays or it will scan empty.

    Well. It became a long text, but any help will be welcome.

    Thanks in advance

    Hello

    It works this way because they are TWO different operations. There are a few free software around which allows us to merge several PDF files into one file. You should probably do this way. The following link is one of them:

    http://www.PDFSam.org/download/

    This free product allows you to divide a large file to many small files (such as the extraction of the chapters of a thick book) and also merge several pdf files into a pdf file.

    Note: use the free.

    Kind regards.

  • Updating of the ADF Table strangely after delete line

    Hello

    I use ADF Table with ArrayList to the model of the collection. I do not use View object

    < af:table var = value ' row' = "#{pageFlowScope.dataBean.collectionModel}"... "

    I have a SelectOnceChoice in each row of the table and bind their values to a property of the line

    < af:selectOneChoice value = "#{row.label}"... "

    I have a command link to remove each line and the delete method:

    collectionModel.remove (idx);

    The model is correctly updated, but the table of the ADF is not. Somehow, the value of the selection of the next line is set to the value of the deleted row.

    For example: If there two select with values respectively: Foo, Bar. If I remove the line with Foo, the remaining line (initially Bar) is set to Foo.

    If I refresh (F5) the page, it appears correctly. I also tried to use addPartialTarget and partialTriggers but no help.

    Can someone help me? Thanks in advance.

    Post edited by: 2925664

    Hello

    Previously I use table binding, that's why it has that name.

    BTW, I don't know what's causing the problem. It is related to the life cycle ADF. I put the immediate = "true" for the select box and it is working fine now.

    Concerning

  • How to hide the ADF table during execution

    Hi all

    I use Jdeveloper - 11.1.2.4.39.64.36.1 version

    Is it possible to show only the tables with associated in the same lines and hide tables with no record.

    For ex: Let's say that at the time of the design, there are three related data tables with the diagram below.

    Table 1
    Table 2
    Table 3

    However, during execution, there is no record for 'Table 2', but the table 1 and table 3 have records associated with them.

    Is it possible to hide the table 2 and get the following provision -

    Table 1
    Table 3

    According to the schema, table 2 should hide, and table 3 should get reordered under table 1 directly.

    Best regards

    Ankit Gupta

    Hello

    You can set the property visible from the table to something like #{bindings.. estimatedRowCount gt 0}

    Arun-

  • Restore the partition table data

    Hello


    DB 10.2.0.1

    I have a dump file in which exported the data from a table to a database. This table is based partioned. I have imported into the database B. I have truncated or tried successively to the partition of the table in database B now I want to import the data from the export dump file in the same table. I don't want to import the data again for all partitions. I want to just import only truncated how data I could do?

    Thank you

    Hello

    Even I did as you say, but we give below error.

    In fact, it is not an error message:

    Import completed successfully without warnings.

    You have SQL code contained in the "dump":

    CREATE TABLE 'TRADING_TEST' ("BRAND_DESCRIPTION' VARCHAR2 (120)...)

    For example, you may notice that importation will try to recreate the Table of TRADING_TEST with all its partitions. Of course, it will generate an error and you will not be able to import the data in the Partition. Unless you have just TRUNCATE and you use the parameter IGNORE = Y.

    So, if you TRUNCATE the Partition you do not have to recreate.

    If you DROP the Partition, it is best to recreate first (ALTER TABLE ADD PARTITION...).

    Then import you the datas like that (I just add IGNORE and LOG settings):

    imp system/password file=C:\exportTable32\table.dmp FROMUSER=dev touser=system tables=(TRADING_TEST:A15) ignore=y log=C:\exportTable32\table.log
    

    However, I hope that it is just for test purpose, because it is not recommended to create the user Tables in the SYSTEM.

    Hope this helps.
    Best regards
    Jean Valentine

  • XML from the Oracle Table data

    Hi all

    I'm new to this network. I'm also new to oracle XML package. I want a help with the query below.

    CREATE TABLE EMP (ID NUMBER PRIMARY KEY, NAME VARCHAR2 (10), TELEPHONE NUMBER);

    INSERT INTO EMP (ID, NAME, PHONE) VALUES (11, 'Joy', 1234);
    INSERT INTO EMP (ID, NAME, PHONE) VALUES (22, 'Mike', 5678).
    INSERT INTO EMP (ID, NAME, PHONE) VALUES (33, "Jason", NULL);
    COMMIT;

    I want to export data from the EMP table in an XML file with the format below.

    Power required:

    <? XML version = "1.0" encoding = "UTF-8"? > < Joy STATICDATA > < EMP > < ID > 11 < /ID > < NAME > < / NAME > < / EMP > < / STATICDATA >
    <? XML version = "1.0" encoding = "UTF-8"? > < Mike STATICDATA > < EMP > < ID > 22 < /ID > < NAME > < / NAME > < / EMP > < / STATICDATA >
    <? XML version = "1.0" encoding = "UTF-8"? > < Jason STATICDATA > < EMP > < ID > 33 < /ID > < NAME > < / NAME > < / EMP > < / STATICDATA >

    I used some XML functions and you wrote the following query.

    Select XMLROOT (XMLELEMENT (staticdata, XMLELEMENT (EMP, XMLELEMENT(ID,ID), XMLELEMENT(NAME,NAME))), version "1.0" encoding = "UTF - 8') xml EMP;

    my query output:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < STATICDATA >
    < EMP >
    < ID > 11 / < ID >
    Joy of < NAME > < / NAME >
    < / EMP >
    < / STATICDATA >
    <? XML version = "1.0" encoding = "UTF-8"? >
    < STATICDATA >
    < EMP >
    < ID > 22 / < ID >
    < NAME > Mike < / NAME >
    < / EMP >
    < / STATICDATA >
    <? XML version = "1.0" encoding = "UTF-8"? >
    < STATICDATA >
    < EMP >
    < ID > 33 / < ID >
    Jason < NAME > < / NAME >
    < / EMP >
    < / STATICDATA >


    But I want the out as the power required above. all records in a single line. can someone help me achieve the desired output. also can I export all columns of the table with something like select * from the table in the XML file?

    Thank you
    Delobelle

    Don't know why you need it on a single line, but you could:

    Select XMLTYPE (REGEXP_REPLACE (XMLROOT (XMLELEMENT (staticdata, XMLELEMENT (EMP, XMLELEMENT(ID,ID), XMLELEMENT(NAME,NAME))), version "1.0" encoding = "UTF - 8'), CHR (10) |)) ' *<><'))>
    FROM EMP;

    SY.

Maybe you are looking for