Exporting XML from a container

Getting XML documents into an XmlContainer seems easy enough, but how do I get them back out again into XML? I don't see anything in API that will export the documents once they're placed in the containers.
The reason I'd like to do this is to use BDB XML with a source-control system. Basically, each user would check out a bunch of XML files from source control and create a local container. As changes to the XML files get checked in, they would update and re-add the changed XML files to their local container. When they make changes to their local xml data, I'd like to programmatically determine which documents changed (that part I can do myself) and then export those "edited" documents from the container back into XML format. Then the users can check in their changed documents.
This seems like it would work except that there's no way to export XML documents once they're placed in the XmlContainer. I suppose I could write my own exporter without great difficulty, but it seems like such a basic thing that I feel like I must be missing something somewhere.
Is there really no built-in export-to-xml capability?

Hi Devnull,
Getting XML documents into an XmlContainer seems easy
enough, but how do I get them back out again into
XML? I don't see anything in API that will export
the documents once they're placed in the containers.If you want to export all the documents held by a container you can simply use the dbxml shell:
dbxml>getDocuments
dbxml>print >container_name.xml
This seems like it would work except that there's no
way to export XML documents once they're placed in
the XmlContainer. I suppose I could write my own
exporter without great difficulty, but it seems like
such a basic thing that I feel like I must be missing
something somewhere.Not quite sure if you want to export each document from the container in its own individual xml file or all the documents in a single xml file (if this is the case use the suggested shell commands, or implement it programmatically).
A couple of methods that you could use to implement the exporting functionality that you desire are:
o XmlContainer::getAllDocuments http://www.oracle.com/technology/documentation/berkeley-db/xml/api_cxx/XmlContainer_getAllDocuments.html
-> using this method you could retrieve all the documents inside an xml container, as an xml result set
o XmlResults::next
http://www.oracle.com/technology/documentation/berkeley-db/xml/api_cxx/XmlResults_next.html
-> use this method to iterate through the result set and get each document
o XmlDocument::getContent
http://www.oracle.com/technology/documentation/berkeley-db/xml/api_cxx/XmlDocument_getContent.html
-> use this method to put the content of an xml document from the result set in a string; you could write it into an individual xml file or append it to a single xml file
Regards,
Andrei Costache
Berkeley DB
Oracle Support Services

Similar Messages

  • Script for Batch Exporting XML from IDCS3 files

    Does anyone have a script they would share for batch exporting XML from IDCS3 files? I do not know anything about scripting so I do not know how to write one myself. I've also searched around and cannot find anything. I would appreciate any help with this anyone can offer.
    Thanks,
    Janine

    Or use below Code:
    try {
         inFolderName= Folder.selectDialog ("Input Folder:");
         outFolderName= Folder.selectDialog ("Output Folder:");
         if ((inFolderName != null) && (outFolderName != null))
              var idFileFolder = new Folder(inFolderName);
              var files = idFileFolder.getFiles("*.indd");
              for(myCounter = 0; myCounter < files.length; myCounter++)
                   var theDocument = app.open(File(files[myCounter]));
                   with ( theDocument ) {
                   myXMLFile = new File(outFolderName + "/" + name.replace(".indd","") + ".xml" );
                   exportFile( ExportFormat.xml, myXMLFile );
                   close(SaveOptions.no);
    catch (err ) {
    alert("All files export");
    Shonky

  • Change exported XML from a report

    Hello,
    I need to export a XML from a report button with this structure:
    <LOTE CONTABLE>
    <CONFIG />
    <LOTE>LOTE</LOTE>
    <LINEAS>
    <LINEA>
    <FAC_CODI>1</FAC_CODI>
    <EFDESC>F/pruebass N 1</EFDESC>
    <EFTYPENT>P</EFTYPENT>
    <EFCOMPTE>960</EFCOMPTE>
    </LINEA>
    </LINEAS>
    I have a report with all the columns that I need. I have created a Report Queries (from Shared Components) to generate a XML with the same sql as the report but the XML that APEX generates by default has this structure:
    <ROWSET>
    <ROW>
    <FAC_CODI>1</FAC_CODI>
    <EFDESC>F/pruebass N 1</EFDESC>
    <EFTYPENT>P</EFTYPENT>
    <EFCOMPTE>960</EFCOMPTE>
    </ROW>
    </ROWSET>
    How can I change this structure? I want to add a header and replace "rowset" and "row" to "lineas" and "linea". Is it possible?
    Thank you very much in advance.
    Kind regards,
    Amparo

    >
    The issue is that in the following code, I've replaced this line:
    qryCtx := dbms_xmlgen.newContext('select hash_value from hash');
    with this line:
    qryCtx := dbms_xmlgen.newContext(V_Return);
    I did this because the value that I want to be in XML is in the variable V_Return and not in a table. I get a compilation error:
    PLS-00382: expression is of wrong typeCompilation failed
    Is there a way to use newContext with a variable value rather than a select statement from a table?
    >
    It seems unlikely. The DBMS_XMLGEN documentation says:
    >
    The DBMS_XMLGEN package converts the results of a SQL query to a canonical XML format. The package takes an arbitrary SQL query as input, converts it to XML format, and returns the result as a CLOB.
    >
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10577/d_xmlgen.htm#i1012053
    If <tt>VReturn</tt> is not a SQL query then you will need to use one of the (many) other ways of generating XML. This question has nothing to do with APEX and would be better addressed to the XML DB.
    Additionally, the recommended methods for XML generation, encryption and hashing are heavily version-dependent and you should always quote the relevant DB version/edition information to ensure an appropriate answer. For example, DBMS_OBFUSCATION_TOOLKIT is deprecated as of Oracle 10g and replaced by DBMS_CRYPTO.

  • Workflow for exporting xml from Excel and importing into table in InDesign

    Hello,
    I have worked out how to get data from a .xlsx into a table in InDesign. However, the workflow is still a little clunky and I am looking for way to automate the process further. My current workflow is as follows (files can be download here: http://visual360.co.uk/xml.zip)
    xml is exported from .xlsx by mapping the schema (see what_I_get.xml)
    assign tags to table and individual cells in InDesign
    This is the clunky bit: edit the what_I_get.xml to:
    remove the indentation (this seems necessary as otherwise when I get to stage 4, all the imported text is also indented)
    add tag for table in InDesign (p10_table)
    add tags for individual cells (p10_c11 etc.)
    import the produced what_I_want.xml in the structure panel of InDesign.
    Can anyone point me in the direction of how to automate step 3 above?
    Thanks in advance,
    Nick

    Hi Mike,
    Thanks very much for the reply. I am not at all familiar with XSL/XSLT. I have given it a quick google and it seems like it could be quite a steep learning curve to master. Maybe if I explain the whole context here, it may allow you to point me in the direction of a tutorial that provides a step by step approach to achieve my final goal. Alternatively, you may be able to suggest a whole new workflow.
    I am in the process of updating this document: http://www.ncl.ac.uk/students/insessional/assets/documents/IS_Brochure_2014-15.pdf
    The tables on pages 10-21 contain lots and lots of repeated information. We want the layout to in this format so that each group of students has all the information relevant to them on a single double spread. However, the challenge of using this approach is that it is very high maintenance to ensure the duplicated information is kept in sync - even using a copy / paste approach.
    I was hoping to overcome this by using a single source of data (eg. a spreadsheet) which would then feed into the InDesign. This workflow seems to be overcomplicated by the apparent need to use xml as the "middle-man".
    Ideally, I would like to press the export button in Excel and get this information into the the correct cells in the tables on pages 10-21 without a significant amount of manual labour - after all, my reasons for investigating an automated approach in the first place was to avoid the manual entering of data ie. the scope for error...
    An alternative approach maybe to skip Excel altogether and just use .xml. However, I am not sure that this is possible as Indesign only seems to allow you to import each element once. Maybe you could correct me here...
    I am happy to invest a certain amount of time in developing this approach as once it is in place, it will save a huge of proof-reading time year after year, especially as inconsistencies still persist despite our best efforts to weed them out.
    If you could let me know your thoughts on this and maybe identify a tutorial that would help me, I would be extremely grateful.
    Thanks again!
    Nick

  • Export XML from interactive report

    Hi all,
    is there a way to export the resulting output of an interactive report as XML (inline and/or attachment), like a normal report can do? (with FLOW_XMLP_OUTPUT_R<region_ID>)
    The download option for ir provide only CSV and PDF.
    Regards,
    Marco

    I explain my request.
    I have a very complex SQL query, which is (much) more than 4000 characters and it works well in the interactive report.
    As the interactive report is quite different from the normal report and the procudure FLOW_XMLP_OUTPUT_R<region_ID> doesn't seem to work, I'm obliged to create a report query in the shared components to get also the XML output, but shared report query accepts query less than 4000 characters long.
    Any idea?
    Marco

  • Exporting XML from PP CS6 to Resolve. Doesn't work no matter what we try!

    My colorist and I have been pulling our hair out trying to figure out how to get this project into Resolve. I am running the latest version of PP Cs6 on a Windows PC. Edited the feature in native R3D format, 4.5k, everything was smooth as silk. I prepped the project by breaking it into 20 minute reels, removing all effects and speed changes, collapsing it down to 2 video tracks and 1 audio tracks and exporting an XML.
    Colorist is running the newest build of Resolve 9 on a Mac and tried to open the XML but it doesn't work. It only shows one clip on the timeline and nothing else. I tried exporting an EDL and it loads a ton of stuff in, but the clips are not right and seem to be the whole takes. He has tried to open in FCP to remake the XML, but it won't open there either. I even tried finding and replacing all the .R3D file extensions in the XML to "_M.MOV" to make it use the proxies instead but no dice.
    Is there any way to make this work? I feel like people go from Premiere to Resolve all the time with no hassle. Since we're both using the latest builds I am wondering where the hangup is. I feel like its within Premiere but I don;t know what to mess around with at this point.
    Any assistance is appreciated!

    I wrestled with that for about 20 hours before getting it.
    Here's some of my code:    makeButton("Refresh Table",northP,
        new ActionListener()
          public void actionPerformed (ActionEvent e)
            updateTable();
      public void updateTable()
        ch.sendShowAll();
        model.handleServerMessages();
        model.fireTableDataChanged();
    /////////////////////This worked for me.
    Both these methods occur in the JFrame class that displays the table. I pass the table
    model to the JFrame constructor. In the above code, the model object is an instantiation
    of the class that extends AbstractTableModel, with the methods getElementAt(), getRowCount(), and getColumnCount().
    If you post some of your code,I'll try to help.
    John

  • Forcing XML from String containing prefix

    Is there way to create an XML node from a String which contains a prefix?
    example:
    var str:String = "<w:body>content</w:body>";
    var newXML:XML = new XML(str);
    This returns:         The prefix "w" for element "body" is not bound.
    Is there a way to force this?
    I have tried adding a namespace to w   but with no luck.

    In a strict sense, using CDATA feels like a hack. It, perhaps, makes sense only if string in your example will eventually become a text() value of another node.
    In your case "w" is obviously a namespace. So, you should explore how to get and make your XML aware of this name space.
    For example the following works:
    var str:String = "<w:node xmlns:w=\"http://www.microsoft.com/\"><w:body >content</w:body></w:node>";
    var newXML:XML = new XML(str);

  • Trying to export XML from FCP6 to Logic Pro 8.

    Will not do anything.  I export and save from FCP.  Then try to import the XML file in Logic.  The prompt when trying to import the XML file says it cannot find the volume.  I redirect it to the same file, and then it asks if I want to do the 48000 or 44100 conversions, I pick either, but it does nothing after.  Nothing shows up in Logic, not in the bins, in the tracks or anywhere.  What gives?
    Mac Os 10.6.7
    2.8 Ghz Single Quad core
    Mac Pro
    Logic Pro 8.0.2
    Final Cut Pro 6.0.6

    In live weezer videos the bass player is hitting a pad on a keyboard so i know its a key sound not a bass guitar slide.
    He could just be triggering a bass slide sample...
    It's some kind of bass sound that bends down, in a similar style to what a bass player might do. Whether it's a real bass or a synth is difficult to say (and probably doesn't matter a great deal), but in any case it's certainly compressed, and grunged up dirty with some amp sim or distortion...
    Try that route...

  • How to export XML from server to local machine

    Hi all
    i want to export some XML files from instance to my local machine.right now i m i have Ftpied the files from server to to my local machine but ,but it is not coming with personalization .
    thanx in advance
    Pratap

    Hi Paratap,
    If you want to see source of the page use
    call jdr_utils.printDocument('/oracle/apps/pos/orders/webui/PosVpoMainPG');
    If you want to see the personalization for the source use
    call jdr_utils.printDocument('/oracle/apps/pos/orders/webui/customizations/site/0/PosVpoMainPG');
    I have given these examples for site level personalization, depanding upon the personalization level the path may vary.
    You can also export the files using XMLExporter by giving appropriate path.
    You can FTP all other source files from the server.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Prefixed XMLNS and exported XML from PDF

    I have the following XSD sample:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema targetNamespace="http://www.irs.gov/efile" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.irs.gov/efile" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
    <xsd:annotation>
      <xsd:documentation>
      </xsd:documentation>
    </xsd:annotation>
    <xsd:include schemaLocation="efileTypes.xsd"/>
    <!-- ===================================  ATTACHMENTS TO MESSAGES  =================================== -->
    <!-- IRS Submission Manifest -->
    <xsd:element name="IRSSubmissionManifest">
      <xsd:complexType>
       <xsd:sequence>
    I am importing the XSD file into Designer and generating all possible fields. I include a button to generate XML output using Acrobat. When I load the PDF into Acrobat and generate the XML, I want the following result:
      <IRSSubmissionManifest xmlns="http://www.irs.gov/efile" xmlns:efile="http://www.irs.gov/efile">
    However, no matter how I edit the XSD, I can only generate the following result:
    <IRSSubmissionManifest xmlns="http://www.irs.gov/efile">
    How do I get the " xmlns:efile="http://www.irs.gov/efile" " fragment to appear in the IRSSubmissionManifest element?
    Thank you.

    Thanks again for your help.
    I tested your code as-is on a webpage for testing XLST, and when I gave it some sample XML data it returned all the element content with the element tags removed. The sample data is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <IRSSubmissionManifest xmlns="http://www.irs.gov/efile"><SubmissionId>2</SubmissionId><EFIN>123456</EFIN><TaxYear>2011</TaxYear><GovernmentCode> IRS</GovernmentCode><FederalSubmissionType>1040</FederalSubmissionType><TaxPeriodBeginDate >20110101</TaxPeriodBeginDate><TaxPeriodEndDate>20111231</TaxPeriodEndDate><TIN>123456789< /TIN></IRSSubmissionManifest>
    I altered the fourth line of your XSLT to read as follows: <xsl:template match="IRSSubmissionManifest">
    I tested that XSLT on this page: http://xslttest.appspot.com/
    And the result was exatly what I needed.
    However, I since imported that XSLT into the PDF in Designer and the transformation doesn't occur. The generated XML has all element tags removed. I receive no error messages regarding the XSLT when I save the PDF file in Designer.
    So close yet not enough.
    I wonder if the XML export functionality doesn't like having the root element tag altered. Regardless, it doesn't seem like any of the data supplied is in error.

  • Export xml from ProductCatalog

    Hi,
    When i run the following command:
    startSQLRepository -m Store -export products.xml -repository /atg/commerce/catalog/ProductCatalog
    Error return:
    Unable to find GSARepository component
    how to proceed?
    tanks

    In CRS Store is a dummy module so it is not able to load any configs.
    So give the exactl module name like
    startSQLRepository -m Store.Storefront -export products.xml -repository /atg/commerce/catalog/ProductCatalog
    Peace
    Shaik

  • Exporting XML from Flash

    I have heard that there are ways that Flash can create an
    external XML file. Most of my searches have revealed that this can
    be done using PHP for server side solutions. However, I am
    wondering if there are other ways that this can be done on a local
    maching, using the XML resolver for example. There doesn't seem to
    be much information about this out there.
    Cheers,
    Paul

    A native Flash projector or swf movie cannot write an file
    directly to the
    local drive.
    A projector could with the help of a wrapper program such as
    your own custom
    C++ program or a third party wrapper program such as Zinc to
    name one of
    many out there.
    Lon Hosford
    www.lonhosford.com
    Flash, Actionscript and Flash Media Server examples:
    http://flashexamples.hosfordusa.com
    May many happy bits flow your way!
    "pablo4747" <[email protected]> wrote in
    message
    news:e7p6mt$sg9$[email protected]..
    >I have heard that there are ways that Flash can create an
    external XML
    >file.
    > Most of my searches have revealed that this can be done
    using PHP for
    > server
    > side solutions. However, I am wondering if there are
    other ways that this
    > can
    > be done on a local maching, using the XML resolver for
    example. There
    > doesn't
    > seem to be much information about this out there.
    >
    > Cheers,
    >
    > Paul
    >
    >

  • How do I export content from an InDesign file to a database?

    I have this project that I'm working on where I need to do the reverse thing of what people normally do it seems - I need to take content that's available in InDesign and export that to a database. From my research, I'm attempting to do this by tagging content in InDesign and doing an xml export. This seems to work well except the resulting content is cluttered up with some things which are automatically tagged (Tables and Cells) and more importantly the exported xml does not contain linebreaks. The former problem I can work around (I can just have the import script ignore table and cell tags) but the latter problem is a loss of information so there's no workaround. Any help is appreciated.

    Recover media from iPod
    See this post from forum regular Zevoneer for options on moving your iPod data back to your computer.
    tt2

  • Export xmp from jpeg

    Hi,
    Photographer I use Internet in lots of coutries.
    I have to work in jpeg and i want to export XML to send by Internet.
    So Can I export XML from JPEG ?
    Can I see the modifications if I put the sidecars XML in the directory of jpeg without modifications ?
    Thx for your help
    BLL

    With ExifTool you can export xmp from jpeg to xmp files and vica versa. Just make sure you have the last version that support all your tags. And of course save the metadata to the jpeg file before you start using the tool and read the metadata after you done.

  • Command to Export project as Final Cut Pro XML from jsx script

    Hi All,
    Can somebody get me the command to export the project as final cut pro xml from jsx script.
    I was using the extension builder script earlier for cs6 panel development, so we were using pjct.exportFinalCutProXML("pathname");
    Now I am working for panel in Premiere CC so working on HTML 5 panel and qe dom scripting(.jsx).
    In some jsx examples i got there is script to export sequence as final cut pro xml but cannot get the code for project export.
    project.activeSequence.exportAsFinalCutProXML(entire_out_path);
    Also please let me know if there are any kind of reference available about all the functions and properties in the pe dom scripting for premiere pro cc.
    I am using premiere pro cc 7.1, windows 7, Eclipse Kepler.
    Thanks in advance,
    Anoop NR

    When you reimport the exported project XML to FCP, do you get the full project or just the single bin/sequence? If you get the full project then it sounds like you need Premiere help, not FCP help ... have you tried asking on the Adobe forums? If you only get the single bin/sequence then it seems you might have inadvertently selected those prior to creating the project export. Try making sure that your FCP Browser window is active and that you have not selected anything within that window prior to using the File > Export > XML command. If that still causes issue then you might try using an earlier FCP XML version.
    Hope it helps
    Andy

Maybe you are looking for