XML Export Duplicates Data

Background: 
     I cut a 24 page form down to 5 pages for testing the XML Import and Export functions.
     I then filled out the 5 page form completely and exported the data to an XML file.
     I added 1 additional field to to Page1 that was not previously there and put the entire 24 page document back together.
     I then imported my saved XML into the new larger document and everything looked fine. The first 5 pages were populated as expected.
     The rest of the form was completed and then exported to a new XML file.
     The section on page 1 where I added an additional field is duplicated after page 5 and then moves on 2 page 6.
The structure of the raw XML file appears as follows:
<form1>
-      <page1>
             <Main>
                    List of original data fields and data
         </Main>
   </page1>
    <page2>
    </page2>
    <page3>
    </page3>
    <page4>
    </page4>
    <page5>
    </page5>
     <page1> 
             <Main>
                    List of data fields and data with new field added in.
         </Main>
   </page1>
    <page6> etc...
When I import the XML file into my Access 2003 database, I receive an error message that there is duplcate data. The first Main section is imported and the revised one is dropped.  The same thing happens if I open the XML in Excel.  I see the original data structure and not the new one with the additional field.
Any thoughts?

yup. you can do this by "Approve Multiple Assets" option available in your publish destination.
click on "Approve Multiple Assets", Select required asset types and select query as "Assets of selected asset type(s) in site: <yoursite>" and click on Approve.
This will approve all your assets in one go.
hope it helps.

Similar Messages

  • XML Export, persistent data and exporting to RPT

    We're using CR4E SP1 with CR 2008 Designer to create reports that are delivered via a web application on Windows.
    The lack of XML export (particulalrly disapointing that the new 2008 XSLT stuff is not there) means we're resorting to some extraordinary steps to get XML out of a report by using jiwam to call the CRPE COM engine.
    We create a report using XI or 2008 that uses a JDBC driver.  The report is copied to our server where users run it in CR4E to view output in Word,  Excel and PDF (we do the connection replacement on the fly).
    To get the XML output, we are attempting to save the report as a temporary RPT (Crystal) file, then invoke CRPE via COM to export the persistent data within the file as XML.
    The COM stuff works fine on a normal RPT file that contains data, but the creation of this temporary file is proving very problematic.
    We have tried SaveAs (just saves what is already in the report) and Export to RPT without success.
    Has anbody got any ideas ?
    A simple question - when is the data within a report actually refreshed?  Is it when the connection is replaced or when the export is initiated?  Is there a method to call that will refresh the data?
    Thanks,
    Steve

    Use CR4E version 2.

  • How to export a data as an XML file from oracle data base?

    could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
    Thankz in advance
    Bala

    SQL> SELECT * FROM v$version;
    BANNER
    Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    5 rows selected.
    SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
    Directory created.
    SQL> declare                                                                                                               
      2    doc  DBMS_XMLDOM.DOMDocument;                                                                                       
      3    xdata  XMLTYPE;                                                                                                     
      4                                                                                                                        
      5    CURSOR xmlcur IS                                                                                                    
      6    SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",                       
      7                                  'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")              
      8                              ,xmlelement("EmployeeNumber",e.empno)                                                     
      9                              ,xmlelement("EmployeeName",e.ename)                                                       
    10                              ,xmlelement("Department",xmlelement("DepartmentName",d.dname)                             
    11                                                      ,xmlelement("Location",d.loc)                                     
    12                                         )                                                                              
    13                   )                                                                                                    
    14     FROM   emp e                                                                                                       
    15     ,      dept d                                                                                                      
    16     WHERE  e.DEPTNO=d.DEPTNO;                                                                                          
    17                                                                                                                        
    18  begin                                                                                                                 
    19    OPEN xmlcur;                                                                                                        
    20    FETCH xmlcur INTO xdata;                                                                                            
    21    CLOSE xmlcur;                                                                                                       
    22    doc := DBMS_XMLDOM.NewDOMDocument(xdata);                                                                           
    23    DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');                                                                  
    24  end;                                                                                                                  
    25  /                                                                                                                      
    PL/SQL procedure successfully completed.
    .

  • How To Export BW Data to XML File

    Hello All-
    I am currently trying to find out how to <b>export </b>data in BW to an XML File. I have read previous posts but would like to know if one option is using Open Hub Services (through an Infospoke) toprovide me with the data I need while outputting a file in XML.  We are currently on BW 3.5. Thank you.
    Claudia

    Hi Claudia,
    Yes, you can export the data available in BW to XML files using Open Hub Service.
    See the links below:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5f12a03d-0401-0010-d9a7-a55552cbe9da
    http://help.sap.com/saphelp_nw04/helpdata/en/33/f3843b0af3de0ee10000000a114084/content.htm
    Cheers!
    Amit

  • XML export "unable to export the data."

    Strictly speaking I am just using the GUI, not trying to do this programmatically.  But this is related to a development project & I figure the dev forum will have better insight.
    Attempting to do a simple export of a plain table from Access. right-click table>export>XML>"OK">checkdata only>"OK"
    ...unable to export the data.
    A very unhelpful error message with zero indication of the reason or how to correct it.  This is a single, simple table.  Exporting other formats is fine.
    What should I even be looking for as a cause for this?  How hard is it to dump a table into XML with tags for <record> or <row> and tags for the column names?

    What you call a simple export Access may not. What are the data types of the fields in this table? Can you post a copy of your table, with only some test data, to a public place like a free OneDrive account?
    Surely I agree you should be afforded a better error message regardless.
    -Tom. Microsoft Access MVP

  • Exporting DB data to XML based on a pre-defined XSD

    Hi,
    I am new to PL/SQL and would need some good examples of code how to export database extries into an XML file based on a predefined XSD.
    Input:
    TABLE1
    fields: ID (PK), NAME, X, Y, BLOB
    TABLE2
    fields: ID (FK), DESCRIPTION
    Both tables have a relationships. Inside the BLOB is a saved XML file that also needs to get exported. I would need a sample of SQL or PL/SQL code how to export a BLOB into an XML.
    Thanks!

    Hi,
    You can use dbms_metada built-in package in order to generate database structure(metadata) in an XML file. This package is very complex and flexible. You can get more examples on tahiti.oracle.com or psoug.org as damorgan mentioned.
    As i read from your question, you need to export-extract table rows-entities in a file, simply. You also need a predefined XSD. Once i need to export table data programatically. You can find more utilities by googling. If you wish, you can reach my package here . However it is not completely covers your req. but i also post simple output in order to understand whether it is helpful or not for your requirements.
    Reg.
    PROCEDURE ExportFile
    --oracle directory name
    pis_DirectoryName in VARCHAR2,
    --file name
    pis_FileName in VARCHAR2,
    --table name that will be exported
    pis_TableName IN ALL_TABLES.TABLE_NAME%TYPE,
    --filter criteria,if exists
    pis_WhereCondition IN VARCHAR2 DEFAULT NULL,
    --if table has more columns how fields will be seperated
    pis_FieldDelimiter IN VARCHAR2 DEFAULT ',',
    --row delimiter, CHR(10) for newline
    pis_RecordDelimiter IN VARCHAR2 DEFAULT CHR(10),
    --if some columns will not be included
    pis_ExceptedFieldList IN VARCHAR2 DEFAULT NULL,
    --1 for fields enclosed by ", such as "column_value"
    pin_FieldEnclosedByQuote IN NUMBER DEFAULT 0,
    --if column name will not be included, set as 0
    pin_IncludeColumnName IN NUMBER DEFAULT 0,
    --if field names included
    pis_FieldNameDelimiter IN VARCHAR2 DEFAULT ':'
    SQL> create table t
      2  (
      3  i number,
      4  xml_data blob
      5  );
    Table created.
    SQL>
    SQL> insert into t values (1, rawtohex('
      2  <books>
      3     <book>
      4        <author>bla bla bla</author>
      5        <title>falan filan</title>
      6     </book>
      7  </books>') );
    1 row created.
    SQL>
    SQL> create or replace directory TEST_DIR as 'c:\test';
    Directory created.
    SQL> BEGIN
      2    UTL_EXP.ExportFile(pis_DirectoryName  => 'TEST_DIR',
      3                       pis_FileName       => 'test.xml',
      4                       pis_TableName      => 't',
      5                       pis_WhereCondition => 'i = 1');
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SQL>
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    C:\Users\Mennan>type c:\test\test.xml
    1,
    <books>
       <book>
          <author>bla bla bla</author>
          <title>falan filan</title>
       </book>
    </books>,
    C:\Users\Mennan>

  • Questions on Subviews and Import/Export in Data Modeler v3 EA1.

    I have a few questions about the capabilities of Data Modeler v3 EA1:
    1) Is it possible to rename subviews? Would like more meaningful names then Relational_x - Subview_x.
    2) Is it possible to save documents at subview level?
    3) Is it possible to import/export subsets of data?
    4) Having problems importing Erwin 7 .xml file, is there known problems with this import?
    Judy

    Hi Judy,
    1) To rename a subview just right click on it in the browser tree and select "Properties". In the properties dialog change the name and click OK button.
    2) You can save a subview as new Data Modeler design - from the File menu select Export -> To Data Modeling Design. In the newly opened dialog select the subview you want to export and click OK button.
    3) After saving a subview as new design (see answer #2) it can be imported in some other design (File -> Import -> Data Modeler Design).
    4) What kind of problems do you have with import of Erwin 7.* xml file?
    Regards,
    Ivan

  • I need to be able to export the data from health kit and read it in something.  Anything.

    I've tried pretty much everything from Excel to downloaded and online apps.  I'm done downloading crap to my brand new computer.  My problem is that I need to be able to export the data into a readable format so that I can give it to my dr(s).  Is there ANY WAY that this is possible?  I'm kind of at my wits end here.  All help/suggestions are appreciated.
    What I've done:
    1.  Exported data.  It creates an xml file that can be opened in excel but gives raw data that no one but egghead developers can read (and I use that term in the best possible way.)
    2. Tried to download an excel add on.  Didn't work.
    3.  Tried several online applications.  Same result as Excel.
    Somehow this data has to be able to be read by someone other than myself, on my phone.
    Thanks to one and all for the many, many suggestions that I'm about to get.

    sam.loomis1234
    The only way out of Premiere Elements 11 is via export in video format (except for jpegs or audio under Publish+Share/Computer/Image or audio).
    The video is whole, not in a project file (project.prel).
    And, the Premiere Elements 11 project.prel does not appear to be an After Effects supported project format
    http://helpx.adobe.com/after-effects/kb/supported-file-formats-effects-cs4.html#main_head1
    Have you asked this question in the Adobe After Effects Forum regarding supported formats?
    http://forums.adobe.com/community/aftereffects_general_discussion
    ATR

  • How can i export the data to excel which has 2 tables with same number of columns & column names?

    Hi everyone, again landed up with a problem.
    After trying a lot to do it myself, finally decided to post here..
    I have created a form in form builder 6i, in which on clicking a button the data gets exported to excel sheet.
    It is working fine with a single table. The problem now is that i am unable to do the same with 2 tables.
    Because both the tables have same number of columns & column names.
    Below are 2 tables with column names:
    Table-1 (MONTHLY_PART_1)
    Table-2 (MONTHLY_PART_2)
    SL_NO
    SL_NO
    COMP
    COMP
    DUE_DATE
    DUE_DATE
    U-1
    U-1
    U-2
    U-2
    U-4
    U-4
    U-20
    U-20
    U-25
    U-25
    Since both the tables have same column names, I'm getting the following error :
    Error 402 at line 103, column 4
      alias required in SELECT list of cursor to avoid duplicate column names.
    So How can i export the data to excel which has 2 tables with same number of columns & column names?
    Should i paste the code? Should i post this query in 'SQL and PL/SQL' Forum?
    Help me with this please.
    Thank You.

    You'll have to *alias* your columns, not prefix it with the table names:
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id, b.id, a.val1, b.val1, a.val2, b.val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
      for rData in cData loop
    ERROR at line 18:
    ORA-06550: line 18, column 3:
    PLS-00402: alias required in SELECT list of cursor to avoid duplicate column names
    ORA-06550: line 18, column 3:
    PL/SQL: Statement ignored
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id a_id, b.id b_id, a.val1 a_val1, b.val1 b_val1, a.val2 a_val2, b.val2 b_val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
    PL/SQL procedure successfully completed.
    cheers

  • Trimming XML export from FCP

    Is it possible to trim the sequence XML export? FCP exports the entire XML sequence even when using Mark In/Out. I just need portions from the sequence to facilitate text extraction from my sequence chapters... if it helps to know why. Thanks.

    Duplicate the sequence...trim out what you don't want to export. Then export the XML.
    Shane

  • TextFlow XML export issue with missing whitespaces

    If I export a TextFlow into XML (with either TextFlowUtil or TextConverter) it will lose white spaces where they occur between elements, so that a subsequence import will yield different content from the original. A simple example being:
    "Where is my white space". Will export and re-import to give: "Whereismywhitespace".
    This happens in the XML build process because when a text node is programatically appended (with appendChild()) white spaces are stripped from the start and end. For example, if you do xml.appendChild("     hello    ") you actually get an XML element containing just "hello".
    Now I understand there is a directive (XML.ignoreWhiteSpace) to ignore or keep white space when parsing nodes already set in the XML, but I cannot see how to do this when you are building the XML from some data structure (like a TextFlow), or indeed when creating an XML object from a String that contains XML notation.
    I am unaware how you can include surrounding whitespace in an XML node (short of CDATA). And the fact that the TextFlow XML import/export loses information seems to make it, well, pretty pointless.
    So, how do I retain these white spaces in a TextFlow in an exported XML?

    The solution for this problem consists of two parts.
    First part is exporting the xml from the textflow, you want no formatted XML (with breaks, tabs, ...), but one long string with the spaces left like there were entered between the tags, this can be done with:
    _textXML = TextConverter.export(EditorID.textFlow,TextConverter.TEXT_LAYOUT_FORMAT,ConversionType.STRING_TYPE) as String;
    Use the TextConverter in stead of the TextFlowUtil.
    Second part is back importing to textFlow:
    There the solution mentioned above was correct.
    XML.ignoreWhitespace = false;
    var flowXML:XML = new XML(_textXML);
    contentTLF = TextFlowUtil.importFromXML(flowXML,WhiteSpaceCollapse.PRESERVE);

  • XML Export/Import Query & Variables

    Hello,
    We are currently bringing up a new environment/landscape.  With that, I'm trying to copy some of the query elements off our current production server and move them back to the new development server.  After much wasted time trying to duplicate the query manually, I've decided to do it via XML Export/Import. 
    I have successfully created an XML file from our production system (sitting on my local machine).  I then go to the import area on the development system and bring up the XML file I created.  I then process the file on the development server.  The import wizard tells me that it saves the objects successfully, but I'm unable to find any of the objects on the system.  So, I have two questions. 
    1)  Is this the proper way to do this, or is there a better way (assuming not on the transport path)
    2)  With the logs saying successful, where do those objects go?  Is there a way that I can go find them?  Do they need activated?
    Thanks in advance,
    JW
    Edited by: J W on Sep 19, 2008 2:02 AM

    bump

  • Exporting the data to EXCEL 2003 in PCUI

    Hi all,
    I am using PCUI for CRM 5.0. In that I have a export as a standard button. It exports data in CSV format to excel. I created a XML template and tried to export the data in a well formatted way. But the data that is getting exported in CSV format is not getting exported when I choose the XML template. Only field names are getting displayed.
    Also I am not getting the XML option in EXCEL that will be normally there in 2003 version.
    What might be the reason?
    Please help me in this regard.
    Thanks,
    Purushothaman.

    Hi Purushothaman do you still have the problem?

  • Report acts funny AND xml-export broken

    Hi @ all,
    1.
    My users are experiencing some weird problems: A report is displayed with the pagination showing that there are 59 rows, but the report is empty... only the column headings are shown!
    Take a look at the screen shot (2004-07-21_Report-Problem.JPG):
    http://marvel.oracle.com/pls/otn/p?n=3444139716751380138
    I've seen this only a couple of times and we thought that we had eliminated the problem by installing a newer version of the IExplorer (6.0). My users had some more difficulties with the older version (mostly 5.0).
    Creating this page I used the howto 'Build a master-detail application'. And yes, I'm positive, there are Samples associated with Delivery 11.
    Has anyone ever experienced such a thing?? How did you get around it? (especially this being such a sometimes-works-sometimes-doesn't-work phenomenon)
    2.
    Another thing: I tried the XML-export (Data Workshop) here in my installation. When I'm at the very end and click Export Data I just get an error message: ORA-04063: has errors ORA-04063: package body "FLOWS_010404.WWV_FLOW_DATALOAD_XML" has errors ORA-06508: PL/SQL: could not find program unit being called. (This happens whether the 'Export as file' -checkbox is checked or not!)
    I tried exactly the same thing on marvel.oracle.com and got a nice XML-file.     :-)
    Has anyone a clue what that program unit is that is not found?
    -David-

    David,
    1. Looks like a pagination problem. Look for threads on resetting pagination on this forum. Your mileage may vary, given the version of HTML DB you are running.
    2. I know you don't want to hear this, but it's time to upgrade to the production version of HTML DB. Like you said, it's working on htmldb.oracle.com. It's tough to say what may be wrong with your setup, other than that it's pre-release software.
    Sergio

  • Allow XML export of cell style information

    The XML formatting using namespace attributes for tables is extremely cool. For importing anyway.
    Today I've got a bunch of fairly complex, manually created tables that I'm creating an XML structure for. I need to export the resulting XML as an example for a programmer, who will create a script that will allow me to take external data and wrap it in the 'aid5' namespace table tags. I can then import tons of data and have it autoflow into my document in a format that matches the tables that I've developed manually.
    Unfortunately my table structure and data display relies on a bunch of specific cell styles. The XML export works beautifully in providing the overall structure and table dimensions. It can even output the paragraph styles for the data, which is sort of helpful. But it totally omits the crucial cell style data that is necessary for strokes, padding backgrounds, etc. I'm still not sure how I'm going to get that in there.
    Hopefully this is not too unusual an application to warrant the option to export cell and table style data.
    I'm still using CS3, so pardon me if this has already been addressed. If not though, please consider it, thanks!

    David,
    Are you trying to export user (SYS and SYSTEM) as well into an XML file? or are you trying to get all of one schema into a XML file?
    One possibility:
    You could create an interim table which contains the tablenames.
    create table interim as select table_name from dba_tables where owner = 'OWNERNAME';
    Then in your program read this interimtable into a cursor and loop through it using the variable in place of your hardcoded 'select * from table1' in the DBMS_XMLQuery.newContext
    You would then need to append result1 to result1 plus new query context for the clob.

Maybe you are looking for