Exporting metadata to an XML file

Hi!
I'm trying to write a script that exports the metadata (camera info and photo description) from all the images in a folder to an XML file and then saves it to the same folder.
My knowledge of JavaScript is a little rusty and i would need some help. I started reading through the Bridge Scripting Guide, but i gave up...
If someone could help me to get started with the script, i would really appreciate it.
Thank you
Balint

This will get you started. It extracts properties from the EXIF and XMP Basic schemas from a selected thumbnail and writes the metadata to the JS console and to a file. Open the script in the ESTK and run it against Bridge with a selection made.
The info you need to modify this script to suit your needs is in the JavaScript Tools guide which you can get with the Bridge SDK from http://www.adobe.com/devnet/bridge/
// Load the XMP Script library
if( xmpLib == undefined )
if( Folder.fs == "Windows" )
var pathToLib = Folder.startup.fsName + "/AdobeXMPScript.dll";
else
var pathToLib = Folder.startup.fsName + "/AdobeXMPScript.framework";
var libfile = new File( pathToLib );
var xmpLib = new ExternalObject("lib:" + pathToLib );
// Get a selected thumbnail
var thumb = app.document.selections[0];
if(thumb.hasMetadata)
// Get the selected file
var selectedFile = thumb.spec;
// Create an XMPFile - this allows you to extract the XMP data
var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_READ);
// The XMP object from the selected thumb
var thumbXMP = myXmpFile.getXMP();
// An empty XMP object
var myXMP = new XMPMeta();
// Create an iterator that will only visit EXIF properties
var iter = thumbXMP.iterator(0, XMPConst.NS_EXIF);
while((prop = iter.next()) != null)
if(prop.path != "")
//$.writeln(prop.namespace + " " + prop.path + " " + prop.value, prop.options);
myXMP.setProperty(prop.namespace, prop.path, prop.value, prop.options);
// Create an iterator that will only visit XMP Basic properties
iter = thumbXMP.iterator(0, XMPConst.NS_XMP);
while((prop = iter.next()) != null)
if(prop.path != "")
//$.writeln(prop.namespace + " " + prop.path + " " + prop.value, prop.options);
myXMP.setProperty(prop.namespace, prop.path, prop.value, prop.options);
var myXMPPacket = myXMP.serialize (XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER);
$.writeln(updatedPacket);
var outFile = File(thumb.spec.fsName + ".xml");
outFile.open("w");
outFile.write(myXMPPacket);
outFile.close();

Similar Messages

  • Export score as music XML file is grey in logic x

    when I want to export a song as XML file to communicate with sibelius
    the option export score as xml file is grey
    Why is that and can I change it
    Thanks

    That size from iMovie is the space saving import that is not a standard dimension, nor is HD 4:3 aspect ratio, it is 16:9.
    This means, as Tom already indicates, that changes are required for FCE use.
    If you already know the 28 mins you require why not capture that directly into FCE using the appropriate Apple Intermediate Codec if it's possible?
    Al

  • How to export table contents in xml file format through SQL queries

    hi,
    i need to export the table data in to xml file format. i got it through the GUI what they given.
    i'm using Oracle 10g XE.
    but i need to send the table name from Java programs. so, how to call the export commands from programming languages through. is there any sql commands to export the table contents in xml format.
    and one more problem is i created each transaction in two tables. for example if we have a transaction 'sales' , that will be saved in db as
    sales1 table and sales2 table. here i maintained and ID field in sales1 as PK. and id as FK in sales2.
    i get the combined data with this query,
    select * from sales1 s1, sales2 s2 where s1.id=s2.id order by s1.id;
    it given all the records, but i'm getting two ID fields (one from each table). how to avoid this. here i dont know how many fields will be there in each table. that will be known at runtime only.
    the static information is sales1 have one ID field with PK and sales2 will have one ID filed with FK.
    i need ur valuable suggestions.
    regards
    pavan.

    You can use DBMS_XMLGEN.getXML('your Query') for generating data in tables to XML format and you can use DBMS_XMLGEN.SETROWSETTAG to change the parent element name other wise it will give rowset as well as DBMS_XMLGEN.SETROWTAG for row name.
    Check this otherwise XMLELEMENT and XMLFOREST function are also there to convert data in XML format.

  • How can I export metadata to a csv file in CS4?

    Help please, I used Workflow Automation Scripts on CS3 but it doesn't seem to work on CS4.

    OK,
    after combing through these posts and trying various 'solutions' I have found that the Barred Rock export metadata script is the only one I have been able to get to work in CS4, kinda. It is a superior script to the original workflow automation script that edo75 refers to, as it does not seem to have the comma issue encountered by jesse and others, where if there are any commas in your metadata it creates a new column and your excel file becomes nonsensical and disorganized. There is a way to avoid this by the way, simply by opening a new file in excel and importing the csv file as text, you then tell excel to read the data the right way by selecting various delimiter combinations. It is not a perfect solution but I have found that by doing this it places most of my metadata in the proper columns, and I end up doing a minimal amount of editing. The barred rock version, which I assume is a modified version of the original script available from adobe as the interface is exactly the same, does not seem to have this issue with commas at all, I am unsure why. If B. Stucky is still reading these posts he may be able to answer, as I think he wrote this script?
    Anyhow I was able to get the script to load in CS4 and then I had to tweek the script to recognize my custom metadata schema, which I was able to do. Now however there is an issue with it recognizing the actual metadata in the image files. I suspect it is a mynamespace issue, that is, I do not have the right path for it to locate the actual metadata for export.
    here is where I suspect the problem lay, where this "http://NPSAlaskaImageStandard" is incorrect.
    new MdNs.MetadataNamespace( "NPS Alaska Image Standard", "http://NPSAlaskaImageStandard", "NPSAlaskaImageStandard" );
    I am a total novice with this stuff so this may not be it at all, however this is my best guess, anyone know the answer?

  • 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

  • Error  while export data from a xml file to an relational table

    Hi,
    I am Creating an ODI Project: Developing an ODI XML to Database Transformation Using Interface with ODI Constraint following this link
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/odi_project_xml-to-table/odi_project_xml-to-table.htm
    This project executed successfully with some warning.*Target Table is automatically created in database and also populated with data*.But when I right-click Target Datastore(in Mapping Tab of the Interface), and then select Data to View Data that needs to be inserted in the target table. I get some error like this:-
    Execution of Query Failed.
    Details:-
    See com.borland.dx.dataset.DataSetException error code: BASE+62
    com.borland.dx.dataset.DataSetException: Execution of query failed.
         at com.borland.dx.dataset.DataSetException.a(Unknown Source)
         at com.borland.dx.dataset.DataSetException.queryFailed(Unknown Source)
         at com.borland.dx.sql.dataset.QueryProvider.a(Unknown Source)
         at com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source)
         at com.borland.dx.dataset.StorageDataSet.refresh(Unknown Source)
         at com.borland.dx.sql.dataset.QueryDataSet.refresh(Unknown Source)
         at com.sunopsis.graphical.frame.DwgDataFrame.initialize(DwgDataFrame.java:368)
         at com.sunopsis.graphical.frame.DwgDataFrame.<init>(DwgDataFrame.java:77)
         at oracle.odi.ui.etlmodeler.diag.inspector.pane.popup.DiagramActionDispayDataTarget.actionPerformed(DiagramActionDispayDataTarget.java:91)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
         at java.awt.Component.processMouseEvent(Component.java:6263)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6028)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Chained exception:
    java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:462)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:931)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:481)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:205)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:548)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:217)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:947)
         at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1283)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1441)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3769)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3823)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1671)
         at com.borland.dx.sql.dataset.o.f(Unknown Source)
         at com.borland.dx.sql.dataset.QueryProvider.e(Unknown Source)
         at com.borland.dx.sql.dataset.JdbcProvider.provideData(Unknown Source)
         at com.borland.dx.dataset.StorageDataSet.refresh(Unknown Source)
         at com.borland.dx.sql.dataset.QueryDataSet.refresh(Unknown Source)
         at com.sunopsis.graphical.frame.DwgDataFrame.initialize(DwgDataFrame.java:368)
         at com.sunopsis.graphical.frame.DwgDataFrame.<init>(DwgDataFrame.java:77)
         at oracle.odi.ui.etlmodeler.diag.inspector.pane.popup.DiagramActionDispayDataTarget.actionPerformed(DiagramActionDispayDataTarget.java:91)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
         at java.awt.Component.processMouseEvent(Component.java:6263)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6028)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Please Help

    Michael R wrote:
    The target table will be created when you execute the interface, if you set the option on the flow tab as instructed in step #6 of the "Setting up ODI Constraint on CLIENT Datastore" Section.
    Option     Value
    CREATE_TARG_TABLE      trueHi Michel,
    This was not my required answer.I am sorry that I was unable to clarify my question.Actually
    +This project executed successfully with some warning.Target Table is automatically created in database and also populated with data.But when I right-click Target Datastore(in >Mapping Tab of the Interface), and then select Data to View Data that needs to be inserted in the target table.I get some error like this:-...+This above line is the result of my project my problem is
    when I right-click Target Datastore(in Mapping Tab of the Interface), and then select Data to View Data that already inserted in the target table.Is not shown by the view data operation.
    I meant to say I am facing this error
    At the10(1010 written) step of
    Creating a New ODI Interface to Perform XML File to RDBMS Table Transformation
    wehre it says
    Open the Interface tab. Select Mapping tab, right-click Target Datastore - CLIENT, and then select Data. View Data inserted in the target table. Close Data Editor. Close the tabs...
    In my case when I use my sqldeveloper I can see data successfully inserted in my target table and also in error table (data that can't satisfy the constraint) .But I was unable to check this by following the above mentioned 10 th step and got this error.
    Thanks

  • Exporting the Browse Sequence XML file for Use in Another Project

    When I generate a browse sequence based on the TOC using zero for the book level, instead of getting A, A1, A2, B, B1, B2, I get A, B, A1, A2, B1, B2.  The TOC runs through all 1st level items first, cycles back through all 2nd level item, then 3rd level, etc.
    My workaround was to auto-create the browse sequence at a 0 level and then manually manipulate it to output according to how my readers would actually read my online book (ie A Aa A1 A1a A1b A2 A2a A2b B B1 etc etc).
    Now that I have my browse sequence in the correct order for this project, I do not want to repeat these steps every time I create a new version of my OLH for the same guide after some minor updates have been made to the FM source.
    There is a file named whbrs.xml inside the output folder and it contains the browse sequence order I specified during my workaround steps.
    Is it possible to export this file to another location for use in another project referencing the same guide?
    This methodology is much preferred as I am working at an enterprise level with multiple documents (some numbering in the hundreds of pages) and do not want to have to manually use my workaround for each project I update over the next few years.

    Hi Kristopher
    You probably wouldn't want to use that particular file as it's an output file. You would likely have better luck using the ProjectName.BRS file as that one should be a source file.
    However, keep in mind that whether (or how well) this will work will entirely depend on having the recipient project using the same identical structure and identical file names.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to export XI messages to XML files?

    Is there any way to download/export a message from XI?. I am thinking on the lines click and "Save As" for example, a message that just arrived from R/3 via RFC but before it gets further processing. I know that you can examine the message in XI but in this case is more like for exploring it using other OS tools.
    Thanks
    Augusto

    Augusto,
    We cannot save the entire message from start to end. But what you can do is open the message and select any node whatever you want on the left hand side and then click on XML Message tab and click on Save Entire Message Version. This prompts you a place to save.
    Is this what you are looking for?
    ---Satish

  • How can I convert the metadata tags on my mp4s to xml files so that they can be read in Windows Media Center?

    I have a library with almost 3000 movies and TV shows that I have fully tagged. However, I have decided to start using Windows Media Center and it does its metadata tagging through XML files.  I wanted to know if anyone could tell me if there was a way to extract the metadata from those mp4s and convert them to a format that WMC could read?  Thanks!!!!

    iTunes can make XML playlists so it might be all you need, I made a simple one file playlist and exported it from iTunes. The result is shown below. In principle I could delete the playlist and the entry from the library, as long as I don't delete the file, then later reimport the XML playlist file. I haven't tested this particular scenario, but I assume that iTunes will read all the properties as listed unless it can read some kind of tag from the file itself in which case the current value of the tag would take precedence.
    What I don't know is what media center would make of this file, or what its files look like, however assuming they have a similar structure that can be decoded then it should be possible to read data from the iTunes library and write out a text file that will make sense to media centre.
    Video Test.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Major Version</key><integer>1</integer>
    <key>Minor Version</key><integer>1</integer>
    <key>Date</key><date>2013-09-26T23:30:26Z</date>
    <key>Application Version</key><string>11.1</string>
    <key>Features</key><integer>5</integer>
    <key>Show Content Ratings</key><true/>
    <key>Music Folder</key><string>file://localhost/E:/iTunes/iTunes%20Media/</string>
    <key>Library Persistent ID</key><string>CCF046191585EA85</string>
    <key>Tracks</key>
    <dict>
    <key>155170</key>
    <dict>
    <key>Track ID</key><integer>155170</integer>
    <key>Name</key><string>Abbott &#38; Costello: "Two Tens For A Five" &#38; "Who's On First"</string>
    <key>Artist</key><string>Abbott &#38; Costello</string>
    <key>Album Artist</key><string>Abbott &#38; Costello</string>
    <key>Album</key><string>Abbott &#38; Costello: "Two Tens For A Five" &#38; "Who's On First"</string>
    <key>Genre</key><string>Comedy Clip</string>
    <key>Kind</key><string>MPEG-4 video file</string>
    <key>Size</key><integer>110483524</integer>
    <key>Total Time</key><integer>532096</integer>
    <key>Year</key><integer>1950</integer>
    <key>Date Modified</key><date>2013-06-19T17:35:18Z</date>
    <key>Date Added</key><date>2012-12-01T17:30:57Z</date>
    <key>Bit Rate</key><integer>156</integer>
    <key>Comments</key><string>www.dvdvideosoft.com</string>
    <key>Artwork Count</key><integer>1</integer>
    <key>Persistent ID</key><string>5AF2C490D1E065CD</string>
    <key>Track Type</key><string>File</string>
    <key>Has Video</key><true/>
    <key>HD</key><false/>
    <key>Video Width</key><integer>1136</integer>
    <key>Video Height</key><integer>640</integer>
    <key>Location</key><string>file://localhost/E:/iTunes/iTunes%20Media/Home%20Vide os/Abbott%20&#38;%20Costello_%20_Two%20Tens%20for%20a%20Five_%20&#38;%20_Who's%2 0on%20First_.mp4</string>
    <key>File Folder Count</key><integer>3</integer>
    <key>Library Folder Count</key><integer>1</integer>
    </dict>
    </dict>
    <key>Playlists</key>
    <array>
    <dict>
    <key>Name</key><string>Video Test</string>
    <key>Playlist ID</key><integer>1930541</integer>
    <key>Playlist Persistent ID</key><string>30BF2769C94F7F29</string>
    <key>All Items</key><true/>
    <key>Playlist Items</key>
    <array>
    <dict>
    <key>Track ID</key><integer>155170</integer>
    </dict>
    </array>
    </dict>
    </array>
    </dict>
    </plist>
    Such files are easier to interpret if opened with Notepad++.
    tt2

  • Exporting data from DB to a XML file (in InDesign CS3)

    Hi folks,
    I receive my data from a call to a database in InDesign, then I need to save them in XML file in my local drive, I use Mac OS X but I want to use the same code (as much as possible) shared with the same version of plugin on Windows. I also need to import the data back from XML file (via using script) to the local doc in InDesign later on. Would you please advice me of how to export/import to/from XML file in InDesign's doc. I checked the code in SnpXMLSampleHelper file. Is that the good/best approach to do it in InDesign?
    TIA,
    Nima

    Hi Martin,
                    Check this..u have to explore more for this issue but i think it can help u a bit
    <a href="/people/anilkumar.vippagunta2/blog/2007/02/01/office-control-in-webdynpro--i:///people/anilkumar.vippagunta2/blog/2007/02/01/office-control-in-webdynpro--i
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/3483789514b748b6fe1f145e9685ab/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/3483789514b748b6fe1f145e9685ab/content.htm</a>
    regards
    Sumit

  • Is it possible to copy or export metadata from Folio Producer?

    Hi,
    Is it possible to copy or export metadata from one issue in Folio Producer and import/apply it to a different issue in Folio Producer? Or create a master metadata template that every issue build could use? It would save a lot of time and typing not having to re-enter the same information every month when releasing the next issue for departments, bylines, etc.
    Thanks!

    Bob,
    Do you know when exporting metadata from Folio Producer will be available, and will it export directly to another rendition, or would it export to a sidecar.xml file?
    The workflow my team prefers is to build our 1024x768 folio first, add metadata via Properties in the Folio Builder as we add articles, share the folio with editors and advertising sales, make edits and updates, then when all content is approved, create the 2048x1536 rendition folio using multiple importing of articles.
    Having the ability to export from an existing folio in Folio Producer would save tons of tedious copying/pasting to get a sidecar.xml.
    Hopefully when this becomes available you'll have a big announcement. (Please?)
    Thanks in advance.
    Mark

  • Problems exporting metadata (using bridge).

    Hello.
    I'm trying to export metadata from OWB to Discoverer. I've a multidimensional model and now I want to explore it using Discoverer.
    When I export metadata, OWB creates a file like:
    BEGIN End User Layer Export
    EUL_Version 3.1.92.0.7
    EUL_Unique_Id 20030315095138
    EUL_Characterset_WE8MSWIN1252
    Define Object
    Type BUSINESS AREA
    Name AREA CASO 1
    mName AREA CASO 1
    mDescription Área de negocios del caso de estudio del almacén de comestibles.
    mId
    EndDefine Object
    Define Object
    This file can't read by Discoverer because not is a XML file. How can I export the .eex using XMI especification?
    Thanks.

    Juan Antonio,
    What version of Warehouse Builder are you using?
    It seems you have selected the Discoverer 3 bridge which may not generate an XML file (I am not sure about the Discoverer 3 format).
    Anyway, you have to define a business area in OWB (or collection if you use OWB904) that contains the object definitions you want to export when you run the bridge.
    Mar.

  • 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>

  • How to update XML file using XSLT

    Hi there,
    I have a "small" issue with exporting data to an XML file using XSLT.
    A two steps process is needed to import data from a non-hierarchical XML file into ABAP, change the data, and then update the XML file with new values. The problem is not trivial, since the format of the XML file is a complex one: there are many interdependent elements on the same level, pointing to each other by using id and ref attributes. Based on these values the data can be read and written into an internal table. I use XSLT and XPath for that. So the inbound process is done and seems to work correctly. I have to mention that the file contains much more data than I need. I am working only with a small part of it.
    Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT? I can pass only the internal table to the transformation, so how do I access the XML file in order to update it? I have tried to use the <B>xsl:document()</B> function to access the content of the file store locally on my PC, but it fails each time by throwing and URI exception. I have tried the absolute path without any addition and the path with the file:/// addition. Same result. Please advise.
    Many thanks,
    Ferenc
    P.S. Please provide me with links only if they are relevant for this very matter. I will not give points for irrelevant postings...

    Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT?
    XSLT approach:  check these online tutorial
    http://www.xml.com/pub/a/2000/08/02/xslt/index.html
    http://www.xml.com/pub/a/2000/06/07/transforming/index.html
    ABAP approach:
    for example you have the xml (original) in a string called say xml_out .
    data: l_xml  type ref to cl_xml_document ,
            node type ref to if_ixml_node  .
    create object l_xml.
    call method l_xml->parse_string
      exporting
        stream = xml_out.
    node = l_xml->find_node(
        name   = 'IDENTITY'
       ROOT   = ROOT
    l_xml->set_attribute(
        name    = 'Name'
        value   = 'Charles'
        node    = node
    (the above example reads the element IDENTITY and sets attribute name/value to the same)
    like wise you can add new elements starting from IDENTITY using various methods available in class CL_XML_DOCUMENT
    so how do I access the XML file in order to update it?
    you have already read this XML into a ABAP variable right?
    Sorry couldnt understand your whole process, why do you need to read local XML file?
    Raja

  • Can I Export Metadata Using CS2?

    Hi Everbody,
    I'd like to generate a text file for my client with filenames, captions, and credits. Can I do this from CS2 somehow? I can't see how to do it in Bridge or Photoshop at this point. Thanks in advance for your time, folks.
    Phil

    Phil,
    Go to www.creativescripting.net
    Look for the barred rock scripts. There's a script in there that exports metadata to a csv file.
    Make sure you download all the docs too!
    Bob

Maybe you are looking for